N
Nuxt3w 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
Cue3w 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
laurent22253w 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
Alan3w ago
The order of modules in the nuxt.config.ts file can matter in terms of initialization and deps
Zeeeth
Zeeeth3w ago
Wow, okay that was easy enough, thanks!
Want results from more Discord servers?
Add your server