Skip to content

Commit f33bb61

Browse files
committed
Warn for useFormState on initial render
1 parent df783f9 commit f33bb61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-reconciler/src/ReactFiberHooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3994,6 +3994,7 @@ if (__DEV__) {
39943994
): [Awaited<S>, (P) => void, boolean] {
39953995
currentHookNameInDev = 'useFormState';
39963996
mountHookTypesDev();
3997+
warnOnUseFormStateInDev();
39973998
return mountActionState(action, initialState, permalink);
39983999
};
39994000
(HooksDispatcherOnMountInDEV: Dispatcher).useActionState =

0 commit comments

Comments
 (0)