Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte + Overmind : Function called outside component initialization #532

Open
bertrandlalo opened this issue Jul 22, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@bertrandlalo
Copy link

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 error Uncaught (in promise) Error: Function called outside component initialization
error-svelte-overmind

Any idea? 🤞

Thanks for your help 🙏

@bertrandlalo bertrandlalo added the bug Something isn't working label Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants