GeezerVison is showing github.com — Upgrade useId to alpha channel (#22674) · react/react@5cccacd
File treeExpand file treeCollapse file tree Open diff view settings react-debug-tools/src/__tests__
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -600,7 +600,7 @@ describe('ReactHooksInspectionIntegration', () => { | 600 | 600 |
| 601 | 601 | it('should support useId hook', () => { | 602 | 602 | function Foo(props) { | 603 | | - const id = React.unstable_useId(); | | 603 | + const id = React.useId(); | 604 | 604 | const [state] = React.useState('hello'); | 605 | 605 | return <div id={id}>{state}</div>; | 606 | 606 | } | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-dom/src/__tests__/ReactDOMUseId-test.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ describe('useId', () => { | 34 | 34 | ReactDOMFizzServer = require('react-dom/server'); | 35 | 35 | Stream = require('stream'); | 36 | 36 | Suspense = React.Suspense; | 37 | | - useId = React.unstable_useId; | | 37 | + useId = React.useId; | 38 | 38 |
| 39 | 39 | // Test Environment | 40 | 40 | const jsdom = new JSDOM( | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.classic.fb.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,7 @@ export { | 40 | 40 | unstable_getCacheSignal, | 41 | 41 | unstable_getCacheForType, | 42 | 42 | unstable_useCacheRefresh, | 43 | | - unstable_useId, | | 43 | + useId, | 44 | 44 | useCallback, | 45 | 45 | useContext, | 46 | 46 | useDebugValue, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.experimental.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,7 +36,7 @@ export { | 36 | 36 | unstable_getCacheSignal, | 37 | 37 | unstable_getCacheForType, | 38 | 38 | unstable_useCacheRefresh, | 39 | | - unstable_useId, | | 39 | + useId, | 40 | 40 | useCallback, | 41 | 41 | useContext, | 42 | 42 | useDebugValue, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ export { | 61 | 61 | unstable_getCacheSignal, | 62 | 62 | unstable_getCacheForType, | 63 | 63 | unstable_useCacheRefresh, | 64 | | - unstable_useId, | | 64 | + useId, | 65 | 65 | useCallback, | 66 | 66 | useContext, | 67 | 67 | useDebugValue, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.modern.fb.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ export { | 39 | 39 | unstable_getCacheSignal, | 40 | 40 | unstable_getCacheForType, | 41 | 41 | unstable_useCacheRefresh, | 42 | | - unstable_useId, | | 42 | + useId, | 43 | 43 | useCallback, | 44 | 44 | useContext, | 45 | 45 | useDebugValue, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/index.stable.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,7 @@ export { | 29 | 29 | lazy, | 30 | 30 | memo, | 31 | 31 | startTransition, | 32 | | - unstable_useId, | | 32 | + useId, | 33 | 33 | useCallback, | 34 | 34 | useContext, | 35 | 35 | useDebugValue, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react/src/React.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -126,6 +126,6 @@ export { | 126 | 126 | REACT_CACHE_TYPE as unstable_Cache, | 127 | 127 | // enableScopeAPI | 128 | 128 | REACT_SCOPE_TYPE as unstable_Scope, | 129 | | - useId as unstable_useId, | | 129 | + useId, | 130 | 130 | act, | 131 | 131 | }; |
Collapse file Copy file name to clipboardExpand all lines: packages/react/unstable-shared-subset.experimental.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ export { | 27 | 27 | unstable_DebugTracingMode, | 28 | 28 | unstable_getCacheSignal, | 29 | 29 | unstable_getCacheForType, | 30 | | - unstable_useId, | | 30 | + useId, | 31 | 31 | useCallback, | 32 | 32 | useContext, | 33 | 33 | useDebugValue, | |
|