Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4.6k
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 |
BetaWas this translation helpful?Give feedback.
All reactions
state_unsafe_mutation
error is a bug#16164, though the fix is not released yet.
Replies: 1 comment 1 reply
-
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you! |
BetaWas this translation helpful?Give feedback.