We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd1284 commit 85f3592Copy full SHA for 85f3592
packages/reactivity/src/effect.ts
@@ -375,12 +375,13 @@ export function refreshComputed(computed: ComputedRefImpl) {
375
}
376
} catch (err) {
377
dep.version++
378
+ throw err
379
+ } finally {
380
+ activeSub = prevSub
381
+ shouldTrack = prevShouldTrack
382
+ cleanupDeps(computed)
383
+ computed.flags &= ~EffectFlags.RUNNING
384
-
- activeSub = prevSub
- shouldTrack = prevShouldTrack
- cleanupDeps(computed)
- computed.flags &= ~EffectFlags.RUNNING
385
386
387
function removeSub(link: Link) {
0 commit comments