react-context-cache

0.0.2 • Public • Published

React Context Cache

A pair of components CacheProvider and CacheConsumer that leverage the React Context API, allowing you to easily store, update, and consume asynchronously retrieved data in your React application. No state container needs to be connected to components, and the data does not need to be passed through the React component tree one level at a time. Access, refresh, and add to your app's global state easily from within any of the components in your app's tree.

Basic Usage

npm i react-context-cache
import { CacheProvider, CacheConsumer } from "react-context-cache";

CacheProvider and CacheConsumer are React components that can be used like a regular React Context.Provider and Context.Consumer component pair.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i react-context-cache

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

8.57 kB

Total Files

3

Last publish

Collaborators

  • epeters3