PSA for @svelte.dev users: we're planning to change how effect teardowns work to eliminate a common gotcha that affects signal-based frameworks. If the new behaviour would create problems for you, please let us know! github.com/sveltejs/sve...
Post
github.comfix: on teardown, use the last known value for the signal before the set by trueadm · Pull Request #15469 · sveltejs/sveltePSA: we are changing how effect teardowns work!
Today, if you read some state inside a teardown function, you get the latest state:
$effect(() => {
const prev = value;
return () => {
...
No replies yet.