Per Fröjd
Fullstack Developer, Gothenburg
Latest Posts
context pattern with modals
ever wondered how to make modals and other more complex components more reusable, without cluttering your global state?
- typescript
- react
- snippets
random typescript functions I use for mocking data
sometimes you just need a bunch of functions to randomize output
- snippets
- typescript
dependency injection with xunit tests
One way to build up a service-collection to interact with when unit-testing
- csharp
- snippets
implementing full-text search with postgres
Get started with implementing full-text search in postgres, without complicating your life too much
- postgresql
- snippets
error handling and pattern matching in csharp
Managing error handling in a neater way together with pattern matching to make sure your API leverages the correct response
- csharp
- api
- postgresql
- snippets
preferred way of using a react context
get started with using react context and hopefully not cause too many unnecessary re-renders
- react
- snippets
- typescript
signalr and some hooks
A quickstart to combining SignalR connectors and React to create some basic live-updated pages.
- javascript
- react
- signalr
- snippets
building an API client with retries
using axios and interceptors to handle authentication, request retries and error handling.
- javascript
- axios
- snippets
promises everywhere, at the same time
Handling multiple promises at the same time can be confusing, especially once you need to start thinking about sequences of data, here’s how to make it easier.
- snippets
- javascript
advent of code 2018
Thoughts, ideas and reflections regarding the advent of code event
- soft
- advent of code
- learning
webpack and legacy applications
How to involve Webpack in older ASP.NET MVC applications together with dynamic imports to lower the load of javascript bundles.
- webpack
- legacy
- c#
- mvc
rolling up the code
Getting started with a typescript library, using rollup because it’s new, fancy and because I had nothing better to do.
- typescript
- rollup
canceling the results of a promise
A brief showcase of how to make promises cancelable to handle long-running requests that might span a long period of time.
- snippets
- react
- javascript
the case of immutable js
Reflections regarding ImmutableJS after spending some time with it in a project, as well as an overview regarding the importance of immutable data in the modern frontend.
- javascript