react-data-fetching
react-data-fetching copied to clipboard
🎣 Declarative data fetching for React.
Hi! First, thanks for your work! I didn't see anything about the server side rendering, how i can wait or populate the response before rendering?
Full typescript migration with passing tests.
In this PR i have refactored error strings to strings templated because i saw one error string repeating.
**This PR is not meant to be merged!** Should only be used for validation of ideas at first. Discussion and possible implementations for https://github.com/CharlesMangwa/react-data-fetching/issues/20 and https://github.com/CharlesMangwa/react-data-fetching/issues/21.
I have tried to implement `onIntercept`. My implementation gets called and refreshes the token correctly but doesn't make another `requestToApi` with the returned `RequestToApi` object. I'm using `[email protected]`. ```jsx import...
It would be nice to have support for typescript definitions.
The repo currently lacks an `example` folder where the community could see how to use the library and get started with a simple copy/paste. This folder could also be useful...
**Opening an issue for documentation purposes.** A PR covering this issue will follow. Sorry @CharlesMangwa for delaying this for some time now. Enable to pass in a callback that `react-data-fetch`...
Opening up this issue for discussion, maybe this could be interesting. Enable to define different states and render them according to the current state. Check this out example using Tasks...
Using a cache system would be great. The cache could be an external module to prevent dependency on LocalStorage or Redux Store. An extra could be the following process: -...