Skip to content

Commit 3d0bc34

Browse files
trueadmdummdidumm
andauthored
fix: address untracked_writes memory leak (#15694)
* fix-untracked-writes-leak * fix * fix * Update packages/svelte/src/internal/client/runtime.js Co-authored-by: Simon H <[email protected]> --------- Co-authored-by: Simon H <[email protected]>
1 parent c544a59 commit 3d0bc34

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/pretty-dingos-unite.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: address untracked_writes memory leak

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export function update_reaction(reaction) {
476476
// we need to increment the read version to ensure that
477477
// any dependencies in this reaction aren't marked with
478478
// the same version
479-
if (previous_reaction !== null) {
479+
if (previous_reaction !== reaction) {
480480
read_version++;
481481

482482
if (untracked_writes !== null) {

0 commit comments

Comments
 (0)