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.
2 parents 3decb67 + ea4843c commit 8ba4f71Copy full SHA for 8ba4f71
.changeset/sweet-adults-complain.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: avoid unnecessary read version increments
packages/svelte/src/internal/client/runtime.js
@@ -490,7 +490,7 @@ export function update_reaction(reaction) {
490
// we need to increment the read version to ensure that
491
// any dependencies in this reaction aren't marked with
492
// the same version
493
- if (previous_reaction !== reaction) {
+ if (previous_reaction !== null && previous_reaction !== reaction) {
494
read_version++;
495
496
if (untracked_writes !== null) {
0 commit comments