use-remote-data
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Awesome data access for React

Start with the documentation

Some background

Based on the pattern described in this article:

Through react hooks and the RemoteDataStore abstraction on top of RemoteData, this library also provides:

  • lazy loading - only data which is necessary to render is fetched
  • invalidation - you specify how long the data should live, and it'll be automatically updated
  • sharing references to stores between components and deduplicating fetches
  • retrying failed fetches

prior art

Package Sidebar

Install

npm i use-remote-data

Weekly Downloads

0

Version

0.5.1

License

MIT

Unpacked Size

61.6 kB

Total Files

66

Last publish

Collaborators

  • oyvindberg