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
I'm trying to add an Overmind store in my SvelteKit project and have some troubles reproducing the code example you provide in the documentation (https://overmindjs.org/views/svelte).
The store gets updated correctly (I added some log on actions increase/decrease), but the count in my component is not reactive.
Indeed, when I write the line $: count = $state.count , I get the following error Uncaught (in promise) Error: Function called outside component initialization
Any idea? 🤞
Thanks for your help 🙏
The text was updated successfully, but these errors were encountered:
Hi !
I'm trying to add an Overmind store in my SvelteKit project and have some troubles reproducing the code example you provide in the documentation (https://overmindjs.org/views/svelte).
The store gets updated correctly (I added some log on actions increase/decrease), but the count in my component is not reactive.
Indeed, when I write the line
$: count = $state.count
, I get the following errorUncaught (in promise) Error: Function called outside component initialization
Any idea? 🤞
Thanks for your help 🙏
The text was updated successfully, but these errors were encountered: