Skip to content

Commit 78ec97d

Browse files
authored
Fix typo (facebook#20466)
1 parent 4c5275f commit 78ec97d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/react-reconciler/src/ReactFiberCompleteWork.new.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ function completeWork(
10591059
}
10601060

10611061
if (nextDidTimeout && !prevDidTimeout) {
1062-
// If this subtreee is running in blocking mode we can suspend,
1062+
// If this subtree is running in blocking mode we can suspend,
10631063
// otherwise we won't suspend.
10641064
// TODO: This will still suspend a synchronous tree if anything
10651065
// in the concurrent tree already suspended during this render.

packages/react-reconciler/src/ReactFiberCompleteWork.old.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ function completeWork(
10591059
}
10601060

10611061
if (nextDidTimeout && !prevDidTimeout) {
1062-
// If this subtreee is running in blocking mode we can suspend,
1062+
// If this subtree is running in blocking mode we can suspend,
10631063
// otherwise we won't suspend.
10641064
// TODO: This will still suspend a synchronous tree if anything
10651065
// in the concurrent tree already suspended during this render.

packages/react/src/__tests__/ReactProfiler-test.internal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ describe('Profiler', () => {
778778
},
779779
);
780780

781-
// Flush sync work with a nested upate
781+
// Flush sync work with a nested update
782782
ReactNoop.flushSync(() => {
783783
ReactNoop.render(
784784
<React.Profiler id="root" onRender={onRender}>

0 commit comments

Comments
 (0)