N
Nuxt4mo 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
Cue4mo 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
laurent22254mo 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
Alan4mo ago
The order of modules in the nuxt.config.ts file can matter in terms of initialization and deps
Zeeeth
ZeeethOP4mo ago
Wow, okay that was easy enough, thanks!

Did you find this page helpful?