File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -3141,10 +3141,7 @@ function beginWork(
3141
3141
const primaryChildFragment : Fiber = ( workInProgress . child : any ) ;
3142
3142
const primaryChildExpirationTime =
3143
3143
primaryChildFragment . childExpirationTime ;
3144
- if (
3145
- primaryChildExpirationTime !== NoWork &&
3146
- primaryChildExpirationTime >= renderExpirationTime
3147
- ) {
3144
+ if ( primaryChildExpirationTime >= renderExpirationTime ) {
3148
3145
// The primary children have pending work. Use the normal path
3149
3146
// to attempt to render the primary children again.
3150
3147
return updateSuspenseComponent (
@@ -3173,10 +3170,8 @@ function beginWork(
3173
3170
const childChildExpirationTime =
3174
3171
primaryChild . childExpirationTime ;
3175
3172
if (
3176
- ( childUpdateExpirationTime !== NoWork &&
3177
- childUpdateExpirationTime >= renderExpirationTime ) ||
3178
- ( childChildExpirationTime !== NoWork &&
3179
- childChildExpirationTime >= renderExpirationTime )
3173
+ childUpdateExpirationTime >= renderExpirationTime ||
3174
+ childChildExpirationTime >= renderExpirationTime
3180
3175
) {
3181
3176
// Found a child with an update with sufficient priority.
3182
3177
// Use the normal path to render the primary children again.
Original file line number Diff line number Diff line change @@ -3141,10 +3141,7 @@ function beginWork(
3141
3141
const primaryChildFragment : Fiber = ( workInProgress . child : any ) ;
3142
3142
const primaryChildExpirationTime =
3143
3143
primaryChildFragment . childExpirationTime ;
3144
- if (
3145
- primaryChildExpirationTime !== NoWork &&
3146
- primaryChildExpirationTime >= renderExpirationTime
3147
- ) {
3144
+ if ( primaryChildExpirationTime >= renderExpirationTime ) {
3148
3145
// The primary children have pending work. Use the normal path
3149
3146
// to attempt to render the primary children again.
3150
3147
return updateSuspenseComponent (
@@ -3173,10 +3170,8 @@ function beginWork(
3173
3170
const childChildExpirationTime =
3174
3171
primaryChild . childExpirationTime ;
3175
3172
if (
3176
- ( childUpdateExpirationTime !== NoWork &&
3177
- childUpdateExpirationTime >= renderExpirationTime ) ||
3178
- ( childChildExpirationTime !== NoWork &&
3179
- childChildExpirationTime >= renderExpirationTime )
3173
+ childUpdateExpirationTime >= renderExpirationTime ||
3174
+ childChildExpirationTime >= renderExpirationTime
3180
3175
) {
3181
3176
// Found a child with an update with sufficient priority.
3182
3177
// Use the normal path to render the primary children again.
You can’t perform that action at this time.
0 commit comments