Skip to content

Commit b5a3df6

Browse files
ZZITEgaearon
authored andcommitted
Fix typo (#14560)
fix typo
1 parent 9c146e6 commit b5a3df6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-reconciler/src/ReactStrictModeWarnings.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if (__DEV__) {
7272
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = () => {
7373
((pendingUnsafeLifecycleWarnings: any): FiberToLifecycleMap).forEach(
7474
(lifecycleWarningsMap, strictRoot) => {
75-
const lifecyclesWarningMesages = [];
75+
const lifecyclesWarningMessages = [];
7676

7777
Object.keys(lifecycleWarningsMap).forEach(lifecycle => {
7878
const lifecycleWarnings = lifecycleWarningsMap[lifecycle];
@@ -87,14 +87,14 @@ if (__DEV__) {
8787
const suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
8888
const sortedComponentNames = setToSortedString(componentNames);
8989

90-
lifecyclesWarningMesages.push(
90+
lifecyclesWarningMessages.push(
9191
`${formatted}: Please update the following components to use ` +
9292
`${suggestion} instead: ${sortedComponentNames}`,
9393
);
9494
}
9595
});
9696

97-
if (lifecyclesWarningMesages.length > 0) {
97+
if (lifecyclesWarningMessages.length > 0) {
9898
const strictRootComponentStack = getStackByFiberInDevAndProd(
9999
strictRoot,
100100
);
@@ -106,7 +106,7 @@ if (__DEV__) {
106106
'\n\nLearn more about this warning here:' +
107107
'\nhttps://fb.me/react-strict-mode-warnings',
108108
strictRootComponentStack,
109-
lifecyclesWarningMesages.join('\n\n'),
109+
lifecyclesWarningMessages.join('\n\n'),
110110
);
111111
}
112112
},

0 commit comments

Comments
 (0)