Skip to content

Commit 4c40cf3

Browse files
committed
fix(reactivity): correct dirty assign in recursive render
close vuejs#10082
1 parent bb6b7a2 commit 4c40cf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/reactivity/src/effect.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ export function triggerEffects(
295295
}
296296
if (
297297
effect._dirtyLevel < dirtyLevel &&
298-
(!effect._runnings || dirtyLevel !== DirtyLevels.ComputedValueDirty)
298+
(!effect._runnings ||
299+
effect.allowRecurse ||
300+
dirtyLevel !== DirtyLevels.ComputedValueDirty)
299301
) {
300302
const lastDirtyLevel = effect._dirtyLevel
301303
effect._dirtyLevel = dirtyLevel

0 commit comments

Comments
 (0)