Replies: 1 comment 3 replies
-
@Typogram there's some known safety risk using Svelte Stores server side. If these are files that do that, such as a load function, the error is very much intended as a safeguard. This is part of why we have you initialize modals/toasts/drawers as described here:
You can read more about the risk here: If these are scripts that run client-side, then I'd suggest keeping an eye on Svelte 5 progress. One of the key features is the introduction of Runes, which are meant to allow for this sort of behavior. |
Beta Was this translation helpful? Give feedback.
-
error I got:
it is a utility function that get called everywhere, so it is hard to capture the error in all the places in svlete and call the toast. I feel like it is a reasonably often use case to want to trigger Toast in .ts file.
Beta Was this translation helpful? Give feedback.
All reactions