Skip to content

Commit

Permalink
[Fresh] Update the list of built-in hooks (#27864)
Browse files Browse the repository at this point in the history
DiffTrain build for [7cbd026](7cbd026)
  • Loading branch information
eps1lon committed Feb 6, 2024
1 parent a52f427 commit d1b0b96
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions compiled/babel-plugin-react-refresh/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,22 @@ function ReactFreshBabelPlugin (babel) {
case 'React.useImperativeHandle':
case 'useDebugValue':
case 'React.useDebugValue':
case 'useId':
case 'React.useId':
case 'useDeferredValue':
case 'React.useDeferredValue':
case 'useTransition':
case 'React.useTransition':
case 'useInsertionEffect':
case 'React.useInsertionEffect':
case 'useSyncExternalStore':
case 'React.useSyncExternalStore':
case 'useFormStatus':
case 'React.useFormStatus':
case 'useFormState':
case 'React.useFormState':
case 'useOptimistic':
case 'React.useOptimistic':
return true;

default:
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
97fd3e7064b162f05b1bac3962ed10c6559c346c
7cbd026ff4ff833db2a2f2271f95cb2b91cb3895

0 comments on commit d1b0b96

Please sign in to comment.