Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #14560

Merged
merged 1 commit into from Jan 21, 2019
Merged

fix typo #14560

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/react-reconciler/src/ReactStrictModeWarnings.js
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