File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
packages/react-server/src Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -3931,9 +3931,7 @@ function flushCompletedQueues(
3931
3931
destination ,
3932
3932
request . resumableState ,
3933
3933
request . renderState ,
3934
- request . allPendingTasks === 0 &&
3935
- ( request . trackedPostpones === null ||
3936
- request . trackedPostpones . workingMap . size === 0 ) , // TODO
3934
+ request . allPendingTasks === 0 && request . trackedPostpones === null ,
3937
3935
) ;
3938
3936
}
3939
3937
@@ -4028,13 +4026,7 @@ function flushCompletedQueues(
4028
4026
if ( enableFloat ) {
4029
4027
// We write the trailing tags but only if don't have any data to resume.
4030
4028
// If we need to resume we'll write the postamble in the resume instead.
4031
- if (
4032
- ! enablePostpone ||
4033
- request . trackedPostpones === null ||
4034
- // We check the working map instead of the root because the root could've
4035
- // been mutated at this point if it was passed straight through to resume().
4036
- request . trackedPostpones . workingMap . size === 0 // TODO
4037
- ) {
4029
+ if ( ! enablePostpone || request . trackedPostpones === null ) {
4038
4030
writePostamble ( destination , request . resumableState ) ;
4039
4031
}
4040
4032
}
@@ -4186,6 +4178,8 @@ export function getPostponedState(request: Request): null | PostponedState {
4186
4178
( trackedPostpones . rootNodes . length === 0 &&
4187
4179
trackedPostpones . rootSlots === null )
4188
4180
) {
4181
+ // Reset. Let the flushing behave as if we completed the whole document.
4182
+ request . trackedPostpones = null ;
4189
4183
return null ;
4190
4184
}
4191
4185
return {
You can’t perform that action at this time.
0 commit comments