fix(suspense): clear effects on suspense resolve

This commit is contained in:
Evan You 2020-03-18 15:40:20 -04:00
parent be91b43564
commit ebc1ca8eff

View File

@ -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)) {