Skip to content

Commit

Permalink
Rename experimental_cache to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 23, 2022
1 parent 27ceb03 commit 6d06853
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/__tests__/ReactCache-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('ReactCache', () => {
Scheduler = require('scheduler');
act = require('jest-react').act;
Suspense = React.Suspense;
cache = React.experimental_cache;
cache = React.cache;
Offscreen = React.unstable_Offscreen;
getCacheSignal = React.unstable_getCacheSignal;
useCacheRefresh = React.unstable_useCacheRefresh;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/index.classic.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export {
isValidElement,
lazy,
memo,
experimental_cache,
cache,
startTransition,
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
unstable_Cache,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/index.experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export {
isValidElement,
lazy,
memo,
experimental_cache,
cache,
startTransition,
unstable_Cache,
unstable_DebugTracingMode,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export {
isValidElement,
lazy,
memo,
experimental_cache,
cache,
startTransition,
unstable_Cache,
unstable_DebugTracingMode,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/index.modern.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export {
isValidElement,
lazy,
memo,
experimental_cache,
cache,
startTransition,
startTransition as unstable_startTransition, // TODO: Remove once call sights updated to startTransition
unstable_Cache,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/React.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export {
forwardRef,
lazy,
memo,
cache as experimental_cache,
cache,
useCallback,
useContext,
useEffect,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ReactSharedSubset.experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export {
isValidElement,
lazy,
memo,
experimental_cache,
cache,
startTransition,
unstable_DebugTracingMode,
unstable_getCacheSignal,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/__tests__/ReactFetch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('ReactFetch', () => {
ReactServerDOMServer = require('react-server-dom-webpack/server.browser');
ReactServerDOMClient = require('react-server-dom-webpack/client');
use = React.experimental_use;
cache = React.experimental_cache;
cache = React.cache;
});

async function render(Component) {
Expand Down

0 comments on commit 6d06853

Please sign in to comment.