fix(runtime-core/template-refs): do not reset refs object before updates
fix #2283
This commit is contained in:
parent
b392fe419c
commit
25d53f09bb
@ -1456,11 +1456,6 @@ function baseCreateRenderer(
|
||||
const prevTree = instance.subTree
|
||||
instance.subTree = nextTree
|
||||
|
||||
// reset refs
|
||||
// only needed if previous patch had refs
|
||||
if (instance.refs !== EMPTY_OBJ) {
|
||||
instance.refs = {}
|
||||
}
|
||||
if (__DEV__) {
|
||||
startMeasure(instance, `patch`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user