Skip to content

Commit bbf4b8c

Browse files
authored
Merge pull request #441 from MengWei-OPPO/fix-custom-directives
[#438] 使用了自定义指令的动态组件,快速切换组件时会报错 main分支已经合入,同步到1100分支
2 parents ad083c4 + a5df29a commit bbf4b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/framework/src/dsls/xvm/vm/watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class XWatcher {
8787
get() {
8888
XLinker.pushTarget(this)
8989
// console.trace(`### App Framework ### XLinker pushTarget ${this.id}`)
90-
const value = this.getter.call(this.vmGetter, this.vm)
90+
const value = this.active ? this.getter.call(this.vmGetter, this.vm) : undefined
9191
XLinker.popTarget()
9292
// console.trace(`### App Framework ### XLinker popTarget ${this.id}`)
9393
this.clearLink()

0 commit comments

Comments
 (0)