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 () => {
...
Why you so hellbent on defending X? Platform ran by a politicized wankhead who's not just annoying but pushing heavy propaganda 24/7. If you squint your eyes and keep a mute list, maybe the few gems are worth it for you, but it's not the case for many. Surely it's not that hard to understand?
0 reposts7 likes