Comment

Comment by arthurdenture

The alternative would be to write a side effect inside your `render()` function, which is illegal -- it breaks the new Concurrent mode rendering, which can call render() speculatively.

I mean, I see why it's intuitively unappealing to you, but there are perfectly good reasons for the design.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton