Skip to content

Commit 274f81c

Browse files
committed
fix(reactivity): allow effect trigger inside no-track execution contexts
fix #804
1 parent d6bf9ff commit 274f81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/effect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function addRunners(
231231
) {
232232
if (effectsToAdd !== void 0) {
233233
effectsToAdd.forEach(effect => {
234-
if (effect !== activeEffect) {
234+
if (effect !== activeEffect || !shouldTrack) {
235235
if (effect.options.computed) {
236236
computedRunners.add(effect)
237237
} else {

0 commit comments

Comments
 (0)