Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rcr] Re-export useMemoCache in top level React namespace #31050

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/react/index.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ export {
act, // DEV-only
captureOwnerStack, // DEV-only
} from './src/ReactClient';

export {useMemoCache as c} from './src/ReactHooks';
2 changes: 2 additions & 0 deletions packages/react/index.experimental.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ export function experimental_useOptimistic<S, A>(
}
return useOptimistic(passthrough, reducer);
}

export {useMemoCache as c} from './src/ReactHooks';
2 changes: 2 additions & 0 deletions packages/react/index.experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ export function experimental_useOptimistic<S, A>(
}
return useOptimistic(passthrough, reducer);
}

export {useMemoCache as c} from './src/ReactHooks';
2 changes: 2 additions & 0 deletions packages/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ export {
useActionState,
version,
} from './src/ReactClient';

export {useMemoCache as c} from './src/ReactHooks';
Loading