Skip to content

Commit e32f38a

Browse files
eps1lonacdlite
andcommitted
Just advance the hook list
Co-Authored-By: Andrew Clark <[email protected]>
1 parent 9b3f1f3 commit e32f38a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-reconciler/src/ReactFiberHooks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,8 +2259,7 @@ function rerenderFormState<S, P>(
22592259
);
22602260
}
22612261

2262-
// For mount, pending is always false.
2263-
const [isPending] = rerenderState(false);
2262+
updateWorkInProgressHook(); // State
22642263

22652264
// This is a mount. No updates to process.
22662265
const state: Awaited<S> = stateHook.memoizedState;
@@ -2272,7 +2271,8 @@ function rerenderFormState<S, P>(
22722271
// This may have changed during the rerender.
22732272
actionQueueHook.memoizedState = action;
22742273

2275-
return [state, dispatch, isPending];
2274+
// For mount, pending is always false.
2275+
return [state, dispatch, false];
22762276
}
22772277

22782278
function pushEffect(

0 commit comments

Comments
 (0)