We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3f1f3 commit e32f38aCopy full SHA for e32f38a
packages/react-reconciler/src/ReactFiberHooks.js
@@ -2259,8 +2259,7 @@ function rerenderFormState<S, P>(
2259
);
2260
}
2261
2262
- // For mount, pending is always false.
2263
- const [isPending] = rerenderState(false);
+ updateWorkInProgressHook(); // State
2264
2265
// This is a mount. No updates to process.
2266
const state: Awaited<S> = stateHook.memoizedState;
@@ -2272,7 +2271,8 @@ function rerenderFormState<S, P>(
2272
2271
// This may have changed during the rerender.
2273
actionQueueHook.memoizedState = action;
2274
2275
- return [state, dispatch, isPending];
+ // For mount, pending is always false.
+ return [state, dispatch, false];
2276
2277
2278
function pushEffect(
0 commit comments