mirror of https://github.com/vuejs/core.git
refactor: should throw errors in computed getters
This commit is contained in:
parent
9fd1284ca4
commit
85f3592725
|
@ -375,12 +375,13 @@ export function refreshComputed(computed: ComputedRefImpl) {
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
dep.version++
|
dep.version++
|
||||||
|
throw err
|
||||||
|
} finally {
|
||||||
|
activeSub = prevSub
|
||||||
|
shouldTrack = prevShouldTrack
|
||||||
|
cleanupDeps(computed)
|
||||||
|
computed.flags &= ~EffectFlags.RUNNING
|
||||||
}
|
}
|
||||||
|
|
||||||
activeSub = prevSub
|
|
||||||
shouldTrack = prevShouldTrack
|
|
||||||
cleanupDeps(computed)
|
|
||||||
computed.flags &= ~EffectFlags.RUNNING
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeSub(link: Link) {
|
function removeSub(link: Link) {
|
||||||
|
|
Loading…
Reference in New Issue