Skip to content

boot error: SyntaxError: Must be called at the top of a setup function #17599

Discussion options

You must be logged in to vote

This is not a Quasar problem, it's just how Vue works. So, you'd face the same thing with any kind of Vue project.

This is possible to solve by making your store composable, while still having a global state. If what I said didn't make sense to you, then I would recommend Pinia instead of spinning your own store.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants