Skip to content

Commit

Permalink
Add useSyncExternalStore and useTransition to getPrimitiveStackCache
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbvaughan committed Feb 20, 2024
1 parent a515d75 commit 14eb5e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-debug-tools/src/ReactDebugHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ function getPrimitiveStackCache(): Map<string, Array<any>> {
Dispatcher.useImperativeHandle(undefined, () => null);
Dispatcher.useDebugValue(null);
Dispatcher.useCallback(() => {});
Dispatcher.useTransition();
Dispatcher.useSyncExternalStore(() => () => {}, () => null, () => null);
Dispatcher.useMemo(() => null);
if (typeof Dispatcher.useMemoCache === 'function') {
// This type check is for Flow only.
Expand Down

0 comments on commit 14eb5e9

Please sign in to comment.