From f5e529176eb676caa4ac0577f83efd5e464b3ccf Mon Sep 17 00:00:00 2001 From: Konstantin Popov Date: Sun, 22 Aug 2021 20:37:36 +0300 Subject: [PATCH] Fix typo in preprocessData.js (#22150) Fix typo: SUSPEND_DURING_UPATE -> SUSPEND_DURING_UPDATE --- .../src/import-worker/preprocessData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js b/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js index a7545ef1b7..75cb6f5f44 100644 --- a/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js +++ b/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js @@ -67,7 +67,7 @@ const WARNING_STRINGS = { 'A big nested update was scheduled during layout. ' + 'Nested updates require React to re-render synchronously before the browser can paint. ' + 'Consider delaying this update by moving it to a passive effect (useEffect).', - SUSPEND_DURING_UPATE: + SUSPEND_DURING_UPDATE: 'A component suspended during an update which caused a fallback to be shown. ' + "Consider using the Transition API to avoid hiding components after they've been mounted.", }; @@ -951,7 +951,7 @@ export default async function preprocessData( lane => profilerData.laneToLabelMap.get(lane) === 'Transition', ) ) { - suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPATE; + suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE; } }, );