File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -766,8 +766,10 @@ function createElement(
766
766
createBlockedChunk ( response ) ;
767
767
handler . value = element ;
768
768
handler . chunk = blockedChunk ;
769
- const freeze = Object . freeze . bind ( Object , element . props ) ;
770
- blockedChunk . then ( freeze , freeze ) ;
769
+ if ( __DEV__ ) {
770
+ const freeze = Object . freeze . bind ( Object , element . props ) ;
771
+ blockedChunk . then ( freeze , freeze ) ;
772
+ }
771
773
return createLazyChunkWrapper ( blockedChunk ) ;
772
774
}
773
775
} else if ( __DEV__ ) {
@@ -1079,11 +1081,7 @@ function parseModelString(
1079
1081
if ( value [ 0 ] === '$' ) {
1080
1082
if ( value === '$' ) {
1081
1083
// A very common symbol.
1082
- if (
1083
- initializingHandler !== null &&
1084
- isArray ( parentObject ) &&
1085
- key === '0'
1086
- ) {
1084
+ if ( initializingHandler !== null && key === '0' ) {
1087
1085
// We we already have an initializing handler and we're abound to enter
1088
1086
// a new element, we need to shadow it because we're now in a new scope.
1089
1087
// This is effectively the "begin" or "push" phase of Element parsing.
Original file line number Diff line number Diff line change @@ -4129,7 +4129,7 @@ function beginWork(
4129
4129
}
4130
4130
case Throw : {
4131
4131
// This represents a Component that threw in the reconciliation phase.
4132
- // So we'll rethrow here. This might be
4132
+ // So we'll rethrow here. This might be a Thenable.
4133
4133
throw workInProgress . pendingProps ;
4134
4134
}
4135
4135
}
You can’t perform that action at this time.
0 commit comments