Skip to content

Commit 14eb5e9

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ function getPrimitiveStackCache(): Map<string, Array<any>> {
8282
Dispatcher.useImperativeHandle(undefined, () => null);
8383
Dispatcher.useDebugValue(null);
8484
Dispatcher.useCallback(() => {});
85+
Dispatcher.useTransition();
86+
Dispatcher.useSyncExternalStore(() => () => {}, () => null, () => null);
8587
Dispatcher.useMemo(() => null);
8688
if (typeof Dispatcher.useMemoCache === 'function') {
8789
// This type check is for Flow only.

0 commit comments

Comments
 (0)