From eab1b99d05e4fecca58922041409b702a816aea4 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 5 Aug 2021 13:39:26 -0400 Subject: [PATCH] Fixed typo --- .../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 e32b275ddf54f..36beebac0b137 100644 --- a/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js +++ b/packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js @@ -53,7 +53,7 @@ const WARNING_STRINGS = { 'An event handler scheduled a big update with React. Consider using the Transition API to defer some of this work.', NESTED_UPDATE: 'A nested update was scheduled during layout. These updates require React to re-render synchronously before the browser can paint.', - SUSPENDD_DURING_UPATE: + SUSPEND_DURING_UPATE: '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.", }; @@ -355,7 +355,7 @@ function processTimelineEvent( if (phase === 'update') { // HACK This is a bit gross but the numeric lane value might change between render versions. if (lanes.some(lane => laneToLabelMap.get(lane) === 'Transition')) { - warning = WARNING_STRINGS.SUSPENDD_DURING_UPATE; + warning = WARNING_STRINGS.SUSPEND_DURING_UPATE; } }