Should I be using a $derived
or an $effect
here?
#16177
-
I'm working on a SvelteKit project that streams a big array of items in chunks to the browser using an AsyncGenerator. I'm trying to make this array in such a way so that it:
Here is part of the core of my setup: I've had success by putting Turns out by wrapping the state update in After poking around on the docs for Is what I'm trying to do here considered a "side effect"? Should I be using an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
state_unsafe_mutation
error is a bug #16164, though the fix is not released yet.