Fix typo in preprocessData.js (#22150)
Fix typo: SUSPEND_DURING_UPATE -> SUSPEND_DURING_UPDATE
Konstantin Popov committed
Aug 22, 2021 at 20:37 UTC
f5e529176eb676caa4ac0577f83efd5e464b3ccf
1 file changed
+2
-2
packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js
+2
-2
@@ -67,7 +67,7 @@ const WARNING_STRINGS = {
67
'A big nested update was scheduled during layout. ' +
68
'Nested updates require React to re-render synchronously before the browser can paint. ' +
69
'Consider delaying this update by moving it to a passive effect (useEffect).',
70
- SUSPEND_DURING_UPATE:
70
+ SUSPEND_DURING_UPDATE:
71
'A component suspended during an update which caused a fallback to be shown. ' +
72
"Consider using the Transition API to avoid hiding components after they've been mounted.",
73
};
@@ -951,7 +951,7 @@ export default async function preprocessData(
951
lane => profilerData.laneToLabelMap.get(lane) === 'Transition',
952
)
953
) {
954
- suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPATE;
954
+ suspenseEvent.warning = WARNING_STRINGS.SUSPEND_DURING_UPDATE;
955
}
956
},
957
);