- Notifications
You must be signed in to change notification settings - Fork1
Async data provider agnostic about data origins
License
data-provider/core
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⚠ Project Discontinuation
We regret to inform you that this project is no longer maintained. For an alternative solution, consider usingReact Query
Data Provider is a data provider(surprise!) with states and built-in cache for JavaScript apps.
The main target of the library are front-end applications, but it could be used also inNode.js.
It helps youproviding async data to your components informing them aboutloading and error states.It also provides acache layer, so you don´t have to worry about when to read the data, and allows you tocombine the results of different data providers using a syntax very similar to the knownReselect, recalculating them only when one of the dependencies cache is cleaned.
As its states are managed withRedux, you can take advantage of his large ecosystem of addons, which will improve the developer experience.(You don't need to use Redux directly in your application if you don't want, the library includes its own internal store for that purpose, whichcan be migrated to your own store easily for debugging purposes, for example).
You can use Data Provider withReact, or with any other view library.Separated addons are available for that purpose, as@data-provider/react.
Data Provider isagnostic about data origins, so it can be used to read data from a REST API, fromlocalStorage, or from any other origin. Choose one of theavailable addons depending of the type of the origin you want to read from, as@data-provider/axios, or@data-provider/browser-storage.
It has alight weight, 4.2KB gzipped in UMD format(you have to add the Redux weight to this), and addons usually are even lighter.
To check out docs, visitdata-provider.org.
| Project | Status | Description |
|---|---|---|
| core | Agnostic base Provider and Selector | |
| axios | API REST data origin usingAxios | |
| browser-storage | Data origin forlocalStorage andsessionStorage | |
| memory | Data origin for objects in memory | |
| prismic | Data origin forPrismic CMS API | |
| react | React bindings. Provides hooks and HOCs |
Contributors are welcome.Please read thecontributing guidelines andcode of conduct.
About
Async data provider agnostic about data origins
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.
