Revert "feat(compiler-core): hoist element with static ref (#344)"

Static refs still need to be tracked in dynamicChildren because unmount
also takes the fast path when dynamicChildren is present, and all refs
need to be properly unmounted.

This reverts commit 920773fc6b.
This commit is contained in:
Evan You
2019-10-21 15:17:29 -04:00
parent f85ba092ce
commit a0d570b16d
4 changed files with 6 additions and 62 deletions

View File

@@ -249,6 +249,9 @@ export function buildProps(
const prop = props[i]
if (prop.type === NodeTypes.ATTRIBUTE) {
const { loc, name, value } = prop
if (name === 'ref') {
hasRef = true
}
properties.push(
createObjectProperty(
createSimpleExpression(