Skip to content

Commit

Permalink
Changed to more predictable restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Sep 25, 2018
1 parent 5ed3786 commit 1c55f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function allowStateChangesInsideComputed<T>(func: () => T): T {
try {
res = func()
} finally {
globalState.computationDepth += prev
globalState.computationDepth = prev
}
return res
}

0 comments on commit 1c55f6e

Please sign in to comment.