Skip to content

Commit

Permalink
Use internal ReactCompilerRuntime in react/compiler-runtime entry…
Browse files Browse the repository at this point in the history
…point (#32054)
  • Loading branch information
eps1lon authored Jan 13, 2025
1 parent af8532f commit 6099351
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/react/compiler-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* @flow
*/

export {useMemoCache as c} from './src/ReactHooks';
export * from './src/ReactCompilerRuntime';
2 changes: 1 addition & 1 deletion packages/react/src/ReactClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import ReactSharedInternals from './ReactSharedInternalsClient';
import {startTransition} from './ReactStartTransition';
import {act} from './ReactAct';
import {captureOwnerStack} from './ReactOwnerStack';
import ReactCompilerRuntime from './ReactCompilerRuntime';
import * as ReactCompilerRuntime from './ReactCompilerRuntime';
import {enableUseResourceEffectHook} from 'shared/ReactFeatureFlags';

const Children = {
Expand Down
6 changes: 1 addition & 5 deletions packages/react/src/ReactCompilerRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@
* @flow
*/

import {useMemoCache} from './ReactHooks';

export default {
c: useMemoCache,
};
export {useMemoCache as c} from './ReactHooks';

0 comments on commit 6099351

Please sign in to comment.