GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add useSyncExternalStore and useTransition to getPrimitiveStackCache … · hanzoai/react@6f64252

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-debug-tools/src
    • ReactDebugHooks.js
    • __tests__
      • ReactHooksInspectionIntegration-test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: packages/react-debug-tools/src/ReactDebugHooks.js
+7Lines 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.
Collapse file

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

Copy file name to clipboardExpand all lines: packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ describe('ReactHooksInspectionIntegration', () => {
928928
"hookSource": {
929929
"columnNumber": 0,
930930
"fileName": "**",
931-
"functionName": null,
931+
"functionName": "Foo",
932932
"lineNumber": 0,
933933
},
934934
"id": 0,
@@ -986,7 +986,7 @@ describe('ReactHooksInspectionIntegration', () => {
986986
"hookSource": {
987987
"columnNumber": 0,
988988
"fileName": "**",
989-
"functionName": null,
989+
"functionName": "Foo",
990990
"lineNumber": 0,
991991
},
992992
"id": 0,
@@ -1969,7 +1969,7 @@ describe('ReactHooksInspectionIntegration', () => {
19691969
"hookSource": {
19701970
"columnNumber": 0,
19711971
"fileName": "**",
1972-
"functionName": null,
1972+
"functionName": "Foo",
19731973
"lineNumber": 0,
19741974
},
19751975
"id": 0,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.