wip: save

This commit is contained in:
daiwei 2025-07-31 08:18:30 +08:00
parent 3f3480c05b
commit 80e6ea8730
2 changed files with 8 additions and 7 deletions

View File

@ -137,13 +137,13 @@ function locateHydrationNodeImpl(isFragment?: boolean): void {
}
// locate slot fragment start anchor
if (isFragment && node && !isComment(node, '[')) {
node = locateVaporFragmentAnchor(node, '[')!
} else {
while (node && isNonHydrationNode(node)) {
node = node.nextSibling!
}
}
// if (isFragment && node && !isComment(node, '[')) {
// node = locateVaporFragmentAnchor(node, '[')!
// } else {
// while (node && isNonHydrationNode(node)) {
// node = node.nextSibling!
// }
// }
if (insertionParent && node) {
const nextNode = node.nextSibling

View File

@ -15,6 +15,7 @@ export function template(html: string, root?: boolean) {
node = adoptTemplate(currentHydrationNode!, html)!
// dynamic node position, default is 0
;(node as any).$dp = n || 0
if (root) (node as any).$root = true
return node
}
// fast path for text nodes