We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcdcc67 commit a6e0398Copy full SHA for a6e0398
packages/runtime-vapor/src/component.ts
@@ -568,12 +568,19 @@ export function createComponentWithFallback(
568
}
569
570
if (rawSlots) {
571
- isHydrating && setCurrentHydrationNode(el.firstChild)
+ let prev: Node
572
+ if (isHydrating) {
573
+ prev = currentHydrationNode!
574
+ setCurrentHydrationNode(el.firstChild)
575
+ }
576
if (rawSlots.$) {
577
// TODO dynamic slot fragment
578
} else {
579
insert(getSlot(rawSlots as RawSlots, 'default')!(), el)
580
581
582
+ setCurrentHydrationNode(prev!)
583
584
585
586
if (!isHydrating && _insertionParent) {
0 commit comments