fix(suspense): clear effects on suspense resolve
This commit is contained in:
parent
be91b43564
commit
ebc1ca8eff
@ -329,6 +329,7 @@ function createSuspenseBoundary<HostNode, HostElement>(
|
|||||||
queuePostFlushCb(effects)
|
queuePostFlushCb(effects)
|
||||||
}
|
}
|
||||||
suspense.isResolved = true
|
suspense.isResolved = true
|
||||||
|
suspense.effects = []
|
||||||
// invoke @resolve event
|
// invoke @resolve event
|
||||||
const onResolve = vnode.props && vnode.props.onResolve
|
const onResolve = vnode.props && vnode.props.onResolve
|
||||||
if (isFunction(onResolve)) {
|
if (isFunction(onResolve)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user