You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating from Svelte 4 to 5 I noticed that when I now use $state for the visualization spec that it throws an exception in case I try to use deeply reactive state.
// this throws an exceptionletspec: VisualizationSpec|undefined=$state(undefined);// this worksletspec: VisualizationSpec|undefined=$state.raw(undefined);
I'm not quite sure what the underlying issue is, but it might be useful at least to document this in case someone else runs into the same problem in the future.
Hey, I just tried to reproduce this but I was not able to. What I did was set the reactive spec in our SvelteKit sample project of the visualization to undefined. Everything worked fine for me (no chart obviously, but no error either).
Could you share some more detail about this or maybe provide code to reproduce this behavior?
While updating from Svelte 4 to 5 I noticed that when I now use $state for the visualization spec that it throws an exception in case I try to use deeply reactive state.
I'm not quite sure what the underlying issue is, but it might be useful at least to document this in case someone else runs into the same problem in the future.
The text was updated successfully, but these errors were encountered: