Skip to content

Commit 8ba4f71

Browse files
committed
Merge branch 'main' into async
2 parents 3decb67 + ea4843c commit 8ba4f71

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: avoid unnecessary read version increments

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export function update_reaction(reaction) {
490490
// we need to increment the read version to ensure that
491491
// any dependencies in this reaction aren't marked with
492492
// the same version
493-
if (previous_reaction !== reaction) {
493+
if (previous_reaction !== null && previous_reaction !== reaction) {
494494
read_version++;
495495

496496
if (untracked_writes !== null) {

0 commit comments

Comments
 (0)