Skip to content

Commit af07061

Browse files
committed
chore: tweaks
1 parent 040154e commit af07061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-vapor/src/vdomInterop.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const vaporInteropImpl: Omit<
113113
const slotsRef = shallowRef(vnode.children)
114114

115115
let prevSuspense: SuspenseBoundary | null = null
116-
if (__FEATURE_SUSPENSE__) {
116+
if (__FEATURE_SUSPENSE__ && parentSuspense) {
117117
prevSuspense = setParentSuspense(parentSuspense)
118118
}
119119

@@ -148,7 +148,7 @@ const vaporInteropImpl: Omit<
148148
)
149149
}
150150

151-
if (__FEATURE_SUSPENSE__) {
151+
if (__FEATURE_SUSPENSE__ && parentSuspense) {
152152
setParentSuspense(prevSuspense)
153153
}
154154

0 commit comments

Comments
 (0)