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 <5968653+dummdidumm@users.noreply.github.com>

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/15696/head
Dominic Gannaway 5 months ago committed by GitHub
parent c544a59351
commit 3d0bc34149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: address untracked_writes memory leak

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

Loading…
Cancel
Save