Skip to content

Commit

Permalink
fix(runtime-core/template-refs): do not reset refs object before updates
Browse files Browse the repository at this point in the history
fix #2283
  • Loading branch information
yyx990803 committed Oct 7, 2020
1 parent b392fe4 commit 25d53f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
Expand Down

0 comments on commit 25d53f0

Please sign in to comment.