Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export function renderWithHooks<Props, SecondArg>(
//
// We want memoized functions to run twice, too, so account for this, user
// functions are double invoked during the *first* invocation of the component
// function, and are *not* double invoked during the second incovation:
// function, and are *not* double invoked during the second invocation:
//
// - First execution of component function: user functions are double invoked
// - Second execution of component function (in Strict Mode, during
Expand Down Expand Up @@ -924,7 +924,7 @@ export function bailoutHooks(
}

export function resetHooksAfterThrow(): void {
// This is called immediaetly after a throw. It shouldn't reset the entire
// This is called immediately after a throw. It shouldn't reset the entire
// module state, because the work loop might decide to replay the component
// again without rewinding.
//
Expand Down Expand Up @@ -2015,7 +2015,7 @@ function rerenderOptimistic<S, A>(
// the passthrough value changed.
//
// So instead of a forked re-render implementation that knows how to handle
// render phase udpates, we can use the same implementation as during a
// render phase updates, we can use the same implementation as during a
// regular mount or update.
const hook = updateWorkInProgressHook();

Expand Down Expand Up @@ -2528,7 +2528,7 @@ function rerenderActionState<S, P>(
// the passthrough value changed.
//
// So instead of a forked re-render implementation that knows how to handle
// render phase udpates, we can use the same implementation as during a
// render phase updates, we can use the same implementation as during a
// regular mount or update.
const stateHook = updateWorkInProgressHook();
const currentStateHook = currentHook;
Expand Down