Skip to content

Commit

Permalink
Fix typo (#14560)
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
ZZITE authored and gaearon committed Jan 21, 2019
1 parent 9c146e6 commit b5a3df6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-reconciler/src/ReactStrictModeWarnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if (__DEV__) {
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = () => {
((pendingUnsafeLifecycleWarnings: any): FiberToLifecycleMap).forEach(
(lifecycleWarningsMap, strictRoot) => {
const lifecyclesWarningMesages = [];
const lifecyclesWarningMessages = [];

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

lifecyclesWarningMesages.push(
lifecyclesWarningMessages.push(
`${formatted}: Please update the following components to use ` +
`${suggestion} instead: ${sortedComponentNames}`,
);
}
});

if (lifecyclesWarningMesages.length > 0) {
if (lifecyclesWarningMessages.length > 0) {
const strictRootComponentStack = getStackByFiberInDevAndProd(
strictRoot,
);
Expand All @@ -106,7 +106,7 @@ if (__DEV__) {
'\n\nLearn more about this warning here:' +
'\nhttps://fb.me/react-strict-mode-warnings',
strictRootComponentStack,
lifecyclesWarningMesages.join('\n\n'),
lifecyclesWarningMessages.join('\n\n'),
);
}
},
Expand Down

0 comments on commit b5a3df6

Please sign in to comment.