Building a simple data fetching hook in React with typescript
There was an ask at one point to come up with a generic data fetching hook. The idea was to standardise how we would handle the various loading, success & error states and also, ensure only the latest data becomes available to the UI by ignoring stal...
rohanbagchi.hashnode.dev4 min read