Files
app/src/stores/index.js
T
2023-05-31 20:44:10 +02:00

22 lines
500 B
JavaScript

import { store } from 'quasar/wrappers'
import { createPinia } from 'pinia'
/*
* If not building with SSR mode, you can
* directly export the Store instantiation;
*
* The function below can be async too; either use
* async/await or return a Promise which resolves
* with the Store instance.
*/
export default store((/* { ssrContext } */) => {
const pinia = createPinia()
console.log("Pinia index");
// You can add Pinia plugins here
// pinia.use(SomePiniaPlugin)
return pinia
})