N
Nuxt2mo ago
Zeeeth

Initializing a pinia store

When / Where would be the best practice / optimal place to initialize a pinia store? is app.vue the place to be or would you create one or multiple plugins to handle this?
4 Replies
Cue
Cue2mo ago
What do you mean by “initialise”? You’d define your stores and consume them when required. There’s not really much to initialise
laurent2225
laurent22252mo ago
Hello @Henrik Sjödahl , When you add the pinia store to your application, you can create a folder for stores and initialize your first store there under a specific file.
Alan
Alan2mo ago
The order of modules in the nuxt.config.ts file can matter in terms of initialization and deps
Zeeeth
ZeeethOP2mo ago
Wow, okay that was easy enough, thanks!
Want results from more Discord servers?
Add your server