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 () => {
...
own information diet. None of these statements are particularly controversial. If being opposed to that sort of thing makes me smug and self righteous then I suppose that's a label I will just have to wear. I'm aware that lots of people I consider friends and colleagues are still there. Sadly,
0 reposts92 likes
There's some pretty bleak shit going on right now. I don't like to dwell on it — I'm 'protecting my peace' as gen Z says, and I don't think of myself as a particularly political person — but I'm also not going to ignore it. Not supporting X is the easiest test any of us will face in the coming years