Skip to content

Commit 38cb319

Browse files
committed
[react-reconciler] Fix typos in comments
1 parent 378973b commit 38cb319

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/react-reconciler/src/ReactChildFiber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import {readContextDuringReconciliation} from './ReactFiberNewContext';
7979

8080
import {runWithFiberInDEV} from './ReactCurrentFiber';
8181

82-
// This tracks the thenables that are unwrapped during reconcilation.
82+
// This tracks the thenables that are unwrapped during reconciliation.
8383
let thenableState: ThenableState | null = null;
8484
let thenableIndexCounter: number = 0;
8585

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ function updateHostHoistable(
20372037
// the host implementation of getResource to consider children in the
20382038
// resource construction but they will otherwise be discarded. In practice
20392039
// this precludes all but the simplest children and Host specific warnings
2040-
// should be implemented to warn when children are passsed when otherwise not
2040+
// should be implemented to warn when children are passed when otherwise not
20412041
// expected
20422042
return null;
20432043
}
@@ -4202,7 +4202,7 @@ function beginWork(
42024202
didReceiveUpdate = false;
42034203

42044204
if (getIsHydrating() && isForkedChild(workInProgress)) {
4205-
// Check if this child belongs to a list of muliple children in
4205+
// Check if this child belongs to a list of multiple children in
42064206
// its parent.
42074207
//
42084208
// In a true multi-threaded implementation, we would render children on

packages/react-reconciler/src/ReactFiberCommitViewTransitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ export function measureUpdateViewTransition(
755755
gesture: boolean,
756756
): boolean {
757757
// If this was a gesture then which Fiber was used for the "old" vs "new" state is reversed.
758-
// We still need to treat "finishedWork" as the Fiber that contains the flags for this commmit.
758+
// We still need to treat "finishedWork" as the Fiber that contains the flags for this commit.
759759
const oldFiber = gesture ? finishedWork : current;
760760
const newFiber = gesture ? current : finishedWork;
761761
const props: ViewTransitionProps = newFiber.memoizedProps;

packages/react-reconciler/src/ReactFiberCommitWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5013,7 +5013,7 @@ export function disconnectPassiveEffect(finishedWork: Fiber): void {
50135013
HookPassive,
50145014
);
50155015
// When disconnecting passive effects, we fire the effects in the same
5016-
// order as during a deletiong: parent before child
5016+
// order as during a deletion: parent before child
50175017
recursivelyTraverseDisconnectPassiveEffects(finishedWork);
50185018
break;
50195019
}

packages/react-reconciler/src/ReactFiberCompleteWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ function completeWork(
12581258
markUpdate(workInProgress);
12591259
}
12601260
} else {
1261-
// We use the updateHostComponent path becuase it produces
1261+
// We use the updateHostComponent path because it produces
12621262
// the update queue we need for Hoistables.
12631263
updateHostComponent(
12641264
current,

packages/react-reconciler/src/ReactFiberHooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ function rerenderOptimistic<S, A>(
20152015
// the passthrough value changed.
20162016
//
20172017
// So instead of a forked re-render implementation that knows how to handle
2018-
// render phase udpates, we can use the same implementation as during a
2018+
// render phase updates, we can use the same implementation as during a
20192019
// regular mount or update.
20202020
const hook = updateWorkInProgressHook();
20212021

0 commit comments

Comments
 (0)