chore: update
ci / test (push) Waiting to run Details
ci / continuous-release (push) Waiting to run Details

This commit is contained in:
daiwei 2025-09-29 22:25:42 +08:00
parent f567f59fe7
commit 4bc9c8b85c
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export function template(
root?: boolean,
): () => Node & { $root?: true } {
let node: Node
const fn = () => {
return (): Node & { $root?: true } => {
if (isHydrating) {
// do not cache the adopted node in node because it contains child nodes
// this avoids duplicate rendering of children
@ -31,5 +31,4 @@ export function template(
if (root) (ret as any).$root = true
return ret
}
return fn
}