File tree 2 files changed +4
-2
lines changed
packages/runtime-core/src
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ export interface SuspenseBoundary {
438
438
registerDep (
439
439
instance : ComponentInternalInstance ,
440
440
setupRenderEffect : SetupRenderEffectFn ,
441
+ optimized : boolean ,
441
442
) : void
442
443
unmount ( parentSuspense : SuspenseBoundary | null , doRemove ?: boolean ) : void
443
444
}
@@ -679,7 +680,7 @@ function createSuspenseBoundary(
679
680
return suspense . activeBranch && next ( suspense . activeBranch )
680
681
} ,
681
682
682
- registerDep ( instance , setupRenderEffect ) {
683
+ registerDep ( instance , setupRenderEffect , optimized ) {
683
684
const isInPendingSuspense = ! ! suspense . pendingBranch
684
685
if ( isInPendingSuspense ) {
685
686
suspense . deps ++
Original file line number Diff line number Diff line change @@ -1238,7 +1238,8 @@ function baseCreateRenderer(
1238
1238
// setup() is async. This component relies on async logic to be resolved
1239
1239
// before proceeding
1240
1240
if ( __FEATURE_SUSPENSE__ && instance . asyncDep ) {
1241
- parentSuspense && parentSuspense . registerDep ( instance , setupRenderEffect )
1241
+ parentSuspense &&
1242
+ parentSuspense . registerDep ( instance , setupRenderEffect , optimized )
1242
1243
1243
1244
// Give it a placeholder if this is not hydration
1244
1245
// TODO handle self-defined fallback
You can’t perform that action at this time.
0 commit comments