Skip to content

Commit

Permalink
Warn for useFormState on initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jul 8, 2024
1 parent df783f9 commit f33bb61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3994,6 +3994,7 @@ if (__DEV__) {
): [Awaited<S>, (P) => void, boolean] {
currentHookNameInDev = 'useFormState';
mountHookTypesDev();
warnOnUseFormStateInDev();
return mountActionState(action, initialState, permalink);
};
(HooksDispatcherOnMountInDEV: Dispatcher).useActionState =
Expand Down

0 comments on commit f33bb61

Please sign in to comment.