Merge branch 'main' into async

pull/16197/head
Rich Harris 7 months ago
commit 8ba4f712d8

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: avoid unnecessary read version increments

@ -490,7 +490,7 @@ export function update_reaction(reaction) {
// we need to increment the read version to ensure that
// any dependencies in this reaction aren't marked with
// the same version
if (previous_reaction !== reaction) {
if (previous_reaction !== null && previous_reaction !== reaction) {
read_version++;
if (untracked_writes !== null) {

Loading…
Cancel
Save