mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix typo in preprocessData.js (#22150)
Fix typo: SUSPEND_DURING_UPATE -> SUSPEND_DURING_UPDATE
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user