feat(reactivity): new effectScope API (#2195)

This commit is contained in:
Anthony Fu
2021-07-07 21:07:19 +08:00
committed by Evan You
parent 87f69fd0bb
commit f5617fc3bb
16 changed files with 400 additions and 89 deletions

View File

@@ -29,7 +29,8 @@ import {
ComponentInternalInstance,
ComponentOptions,
ConcreteComponent,
setCurrentInstance
setCurrentInstance,
unsetCurrentInstance
} from './component'
import { isEmitListener } from './componentEmits'
import { InternalObjectKey } from './vnode'
@@ -411,7 +412,7 @@ function resolvePropValue(
: null,
props
)
setCurrentInstance(null)
unsetCurrentInstance()
}
} else {
value = defaultValue