File tree 1 file changed +4
-0
lines changed
packages/react-server/src 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,8 @@ function renderSuspenseBoundary(
737
737
props : Object ,
738
738
) : void {
739
739
pushBuiltInComponentStackInDEV ( task , 'Suspense' ) ;
740
+
741
+ const prevKeyPath = task . keyPath ;
740
742
const parentBoundary = task . blockedBoundary ;
741
743
const parentSegment = task . blockedSegment ;
742
744
@@ -798,6 +800,7 @@ function renderSuspenseBoundary(
798
800
newBoundary . resources ,
799
801
) ;
800
802
}
803
+ task . keyPath = keyPath ;
801
804
try {
802
805
// We use the safe form because we don't handle suspending here. Only error handling.
803
806
renderNode ( request , task , content , - 1 ) ;
@@ -851,6 +854,7 @@ function renderSuspenseBoundary(
851
854
}
852
855
task . blockedBoundary = parentBoundary ;
853
856
task . blockedSegment = parentSegment ;
857
+ task . keyPath = prevKeyPath ;
854
858
}
855
859
856
860
// We create suspended task for the fallback because we don't want to actually work
You can’t perform that action at this time.
0 commit comments