mirror of https://github.com/vuejs/core.git
chore: update
This commit is contained in:
parent
f567f59fe7
commit
4bc9c8b85c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue