An experimental caching library for React applications, designed to work with concurrent mode and Suspense for data fetching. Version 2.0.0-alpha.1, published by Facebook for demonstration purposes. It provides a basic cache API (unstable_createResource) that integrates with React's experimental features. Not intended for production use; the API is unstable and likely to change. It has no other key differentiators as it's a reference implementation.
npm install react-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a resource for data fetching using Suspense-compatible cache.
Use a stable alternative like SWR or React Query for production.
Migrate to React.unstable_getCacheForType or use a maintained caching solution.
Ensure React version meets requirements and enable experimental features.
npm install react-cache@2.0.0-alpha.1
Use `import { unstable_createResource } from 'react-cache'`Upgrade React to ^16.3.0-alpha.1 and enable concurrent mode.