Skip to content

Commit a98a133

Browse files
committed
Add useSyncExternalStore and useTransition to getPrimitiveStackCache
1 parent a515d75 commit a98a133

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/react-debug-tools/src/ReactDebugHooks.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ function getPrimitiveStackCache(): Map<string, Array<any>> {
8282
Dispatcher.useImperativeHandle(undefined, () => null);
8383
Dispatcher.useDebugValue(null);
8484
Dispatcher.useCallback(() => {});
85+
Dispatcher.useTransition();
86+
Dispatcher.useSyncExternalStore(
87+
() => () => {},
88+
() => null,
89+
() => null,
90+
);
91+
Dispatcher.useDeferredValue(null);
8592
Dispatcher.useMemo(() => null);
8693
if (typeof Dispatcher.useMemoCache === 'function') {
8794
// This type check is for Flow only.

0 commit comments

Comments
 (0)