Skip to content

Commit 3124fcf

Browse files
committed
Alias unstable_useMemoCache to useMemoCache
1 parent b9beb67 commit 3124fcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ let React;
1414
let ReactTestRenderer;
1515
let ReactDebugTools;
1616
let act;
17+
let useMemoCache;
1718

1819
describe('ReactHooksInspectionIntegration', () => {
1920
beforeEach(() => {
@@ -22,6 +23,7 @@ describe('ReactHooksInspectionIntegration', () => {
2223
ReactTestRenderer = require('react-test-renderer');
2324
act = require('internal-test-utils').act;
2425
ReactDebugTools = require('react-debug-tools');
26+
useMemoCache = React.unstable_useMemoCache;
2527
});
2628

2729
it('should inspect the current state of useState hooks', async () => {
@@ -636,7 +638,7 @@ describe('ReactHooksInspectionIntegration', () => {
636638
// @gate enableUseMemoCacheHook
637639
it('should support useMemoCache hook', () => {
638640
function Foo() {
639-
const $ = React.unstable_useMemoCache(1);
641+
const $ = useMemoCache(1);
640642
let t0;
641643

642644
if ($[0] === Symbol.for('react.memo_cache_sentinel')) {

0 commit comments

Comments
 (0)