Fix typo (#14560)
fix typo
Linchengyi committed
Jan 22, 2019 at 00:18 UTC
b5a3df6e8894ebf2334179e445b0803f6819aa9f
1 file changed
+4
-4
packages/react-reconciler/src/ReactStrictModeWarnings.js
+4
-4
@@ -72,7 +72,7 @@ if (__DEV__) {
72
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = () => {
73
((pendingUnsafeLifecycleWarnings: any): FiberToLifecycleMap).forEach(
74
(lifecycleWarningsMap, strictRoot) => {
75
- const lifecyclesWarningMesages = [];
75
+ const lifecyclesWarningMessages = [];
76
77
Object.keys(lifecycleWarningsMap).forEach(lifecycle => {
78
const lifecycleWarnings = lifecycleWarningsMap[lifecycle];
@@ -87,14 +87,14 @@ if (__DEV__) {
87
const suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
88
const sortedComponentNames = setToSortedString(componentNames);
89
90
- lifecyclesWarningMesages.push(
90
+ lifecyclesWarningMessages.push(
91
`${formatted}: Please update the following components to use ` +
92
`${suggestion} instead: ${sortedComponentNames}`,
93
);
94
}
95
});
96
97
- if (lifecyclesWarningMesages.length > 0) {
97
+ if (lifecyclesWarningMessages.length > 0) {
98
const strictRootComponentStack = getStackByFiberInDevAndProd(
99
strictRoot,
100
);
@@ -106,7 +106,7 @@ if (__DEV__) {
106
'\n\nLearn more about this warning here:' +
107
'\nhttps://fb.me/react-strict-mode-warnings',
108
strictRootComponentStack,
109
- lifecyclesWarningMesages.join('\n\n'),
109
+ lifecyclesWarningMessages.join('\n\n'),
110
);
111
}
112
},