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