fix(runtime-core): should pause tracking when initializing legacy options (#2524)

fix #2521
This commit is contained in:
HcySunYang
2020-11-28 03:01:01 +08:00
committed by GitHub
parent 5b6266284d
commit 0ff2a4f1c1
2 changed files with 45 additions and 0 deletions

View File

@@ -704,7 +704,9 @@ function finishComponentSetup(
// support for 2.x options
if (__FEATURE_OPTIONS_API__) {
currentInstance = instance
pauseTracking()
applyOptions(instance, Component)
resetTracking()
currentInstance = null
}