From ed984e12fc82852802559e311bb3accbb01e19cc Mon Sep 17 00:00:00 2001 From: inokawa <48897392+inokawa@users.noreply.github.com> Date: Tue, 15 Dec 2020 23:06:00 +0900 Subject: [PATCH] Fix typo --- packages/react-reconciler/src/ReactFiberCompleteWork.new.js | 2 +- packages/react-reconciler/src/ReactFiberCompleteWork.old.js | 2 +- packages/react/src/__tests__/ReactProfiler-test.internal.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberCompleteWork.new.js b/packages/react-reconciler/src/ReactFiberCompleteWork.new.js index 53a328121051f..12e65237e1696 100644 --- a/packages/react-reconciler/src/ReactFiberCompleteWork.new.js +++ b/packages/react-reconciler/src/ReactFiberCompleteWork.new.js @@ -1048,7 +1048,7 @@ function completeWork( } if (nextDidTimeout && !prevDidTimeout) { - // If this subtreee is running in blocking mode we can suspend, + // If this subtree is running in blocking mode we can suspend, // otherwise we won't suspend. // TODO: This will still suspend a synchronous tree if anything // in the concurrent tree already suspended during this render. diff --git a/packages/react-reconciler/src/ReactFiberCompleteWork.old.js b/packages/react-reconciler/src/ReactFiberCompleteWork.old.js index 8f0e68353d90c..cb5786f9a2d35 100644 --- a/packages/react-reconciler/src/ReactFiberCompleteWork.old.js +++ b/packages/react-reconciler/src/ReactFiberCompleteWork.old.js @@ -1048,7 +1048,7 @@ function completeWork( } if (nextDidTimeout && !prevDidTimeout) { - // If this subtreee is running in blocking mode we can suspend, + // If this subtree is running in blocking mode we can suspend, // otherwise we won't suspend. // TODO: This will still suspend a synchronous tree if anything // in the concurrent tree already suspended during this render. diff --git a/packages/react/src/__tests__/ReactProfiler-test.internal.js b/packages/react/src/__tests__/ReactProfiler-test.internal.js index 972dacda7a119..6dac248436f1e 100644 --- a/packages/react/src/__tests__/ReactProfiler-test.internal.js +++ b/packages/react/src/__tests__/ReactProfiler-test.internal.js @@ -778,7 +778,7 @@ describe('Profiler', () => { }, ); - // Flush sync work with a nested upate + // Flush sync work with a nested update ReactNoop.flushSync(() => { ReactNoop.render(