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.
1 parent e079ac9 commit ea4843cCopy full SHA for ea4843c
.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
@@ -469,7 +469,7 @@ export function update_reaction(reaction) {
469
// we need to increment the read version to ensure that
470
// any dependencies in this reaction aren't marked with
471
// the same version
472
- if (previous_reaction !== reaction) {
+ if (previous_reaction !== null && previous_reaction !== reaction) {
473
read_version++;
474
475
if (untracked_writes !== null) {
0 commit comments