Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
/corePublic archive

Async data provider agnostic about data origins

License

NotificationsYou must be signed in to change notification settings

data-provider/core

⚠ Project Discontinuation
We regret to inform you that this project is no longer maintained. For an alternative solution, consider usingReact Query

Data Provider logo

Build StatusCoverageQuality GateDownloadsRenovateLast releaseLast commitLicense


Introduction

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.

Documentation

To check out docs, visitdata-provider.org.

Ecosystem

ProjectStatusDescription
corecore-statusAgnostic base Provider and Selector
axiosaxios-statusAPI REST data origin usingAxios
browser-storagebrowser-storage-statusData origin forlocalStorage andsessionStorage
memorymemory-statusData origin for objects in memory
prismicprismic-statusData origin forPrismic CMS API
reactreact-statusReact bindings. Provides hooks and HOCs

Contributing

Contributors are welcome.Please read thecontributing guidelines andcode of conduct.

Packages

 
 
 

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp