mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* [experimental] simple-cache-provider Pushing an early version of this for testing and demonstration purposes. * Change invariant to DEV-only warning * Use function overloading for createResource type Expresses that primitive keys do not require a hash function, but non-primitive keys do. * More tests * Use export * * Make Record type a disjoint union * Pass miss argument separate from key to avoid a closure
487 B
487 B
simple-cache-provider
A basic cache for React applications. It also serves as a reference for more advanced caching implementations.
This package is meant to be used alongside yet-to-be-released, experimental React features. It's unlikely to be useful in any other context.
Do not use in a real application. We're publishing this early for demonstration purposes.
Use it at your own risk.
No, Really, It Is Unstable
The API may will change wildly between versions.