@@ -4765,6 +4765,14 @@ var ReactStrictModeWarnings = {
4765
4765
var didWarnAboutDeprecatedLifecycles = new Set ( ) ;
4766
4766
var didWarnAboutUnsafeLifecycles = new Set ( ) ;
4767
4767
4768
+ var setToSortedString = function ( set ) {
4769
+ var array = [ ] ;
4770
+ set . forEach ( function ( value ) {
4771
+ array . push ( value ) ;
4772
+ } ) ;
4773
+ return array . sort ( ) . join ( ", " ) ;
4774
+ } ;
4775
+
4768
4776
ReactStrictModeWarnings . discardPendingWarnings = function ( ) {
4769
4777
pendingComponentWillMountWarnings = [ ] ;
4770
4778
pendingComponentWillReceivePropsWarnings = [ ] ;
@@ -4790,9 +4798,7 @@ var ReactStrictModeWarnings = {
4790
4798
4791
4799
var formatted = lifecycle . replace ( "UNSAFE_" , "" ) ;
4792
4800
var suggestion = LIFECYCLE_SUGGESTIONS [ lifecycle ] ;
4793
- var sortedComponentNames = Array . from ( componentNames )
4794
- . sort ( )
4795
- . join ( ", " ) ;
4801
+ var sortedComponentNames = setToSortedString ( componentNames ) ;
4796
4802
4797
4803
lifecyclesWarningMesages . push (
4798
4804
formatted +
@@ -4844,9 +4850,7 @@ var ReactStrictModeWarnings = {
4844
4850
didWarnAboutDeprecatedLifecycles . add ( fiber . type ) ;
4845
4851
} ) ;
4846
4852
4847
- var sortedNames = Array . from ( uniqueNames )
4848
- . sort ( )
4849
- . join ( ", " ) ;
4853
+ var sortedNames = setToSortedString ( uniqueNames ) ;
4850
4854
4851
4855
lowPriorityWarning$1 (
4852
4856
false ,
@@ -4869,9 +4873,7 @@ var ReactStrictModeWarnings = {
4869
4873
didWarnAboutDeprecatedLifecycles . add ( fiber . type ) ;
4870
4874
} ) ;
4871
4875
4872
- var _sortedNames = Array . from ( _uniqueNames )
4873
- . sort ( )
4874
- . join ( ", " ) ;
4876
+ var _sortedNames = setToSortedString ( _uniqueNames ) ;
4875
4877
4876
4878
lowPriorityWarning$1 (
4877
4879
false ,
@@ -4893,9 +4895,7 @@ var ReactStrictModeWarnings = {
4893
4895
didWarnAboutDeprecatedLifecycles . add ( fiber . type ) ;
4894
4896
} ) ;
4895
4897
4896
- var _sortedNames2 = Array . from ( _uniqueNames2 )
4897
- . sort ( )
4898
- . join ( ", " ) ;
4898
+ var _sortedNames2 = setToSortedString ( _uniqueNames2 ) ;
4899
4899
4900
4900
lowPriorityWarning$1 (
4901
4901
false ,
@@ -6217,7 +6217,6 @@ var ReactFiberClassComponent = function(
6217
6217
if (
6218
6218
typeof instance . getSnapshotBeforeUpdate === "function" &&
6219
6219
typeof instance . componentDidUpdate !== "function" &&
6220
- typeof instance . componentDidUpdate !== "function" &&
6221
6220
! didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate . has ( type )
6222
6221
) {
6223
6222
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate . add ( type ) ;
@@ -9199,6 +9198,10 @@ var ReactFiberBeginWork = function(
9199
9198
changedBits ,
9200
9199
renderExpirationTime
9201
9200
) ;
9201
+ } else if ( oldProps === newProps ) {
9202
+ // Skip over a memoized parent with a bitmask bailout even
9203
+ // if we began working on it because of a deeper matching child.
9204
+ return bailoutOnAlreadyFinishedWork ( current , workInProgress ) ;
9202
9205
}
9203
9206
// There is no bailout on `children` equality because we expect people
9204
9207
// to often pass a bound method as a child, but it may reference
0 commit comments