Skip to content

Alternate import syntax #1712

Discussion options

You must be logged in to vote

Yes, this is a bad idea: it will break in some scenarios:

  • SPA: if useStore() is called before app.use(pinia)
  • SSR: always

To cut the boilerplate, you should instead use the unplugin auto import library

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Comment options

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