Skip to content

Commit bb606f3

Browse files
committed
wip: handle $root during hydration
1 parent a776fc4 commit bb606f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-vapor/src/dom/template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function template(html: string, root?: boolean) {
1515
node = adoptTemplate(currentHydrationNode!, html)!
1616
// dynamic node position, default is 0
1717
;(node as any).$dp = n || 0
18+
if (root) (node as any).$root = true
1819
return node
1920
}
2021
// fast path for text nodes

0 commit comments

Comments
 (0)