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
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 🙏