mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
470 B
21 lines
470 B
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()
|
|
|
|
// You can add Pinia plugins here
|
|
// pinia.use(SomePiniaPlugin)
|
|
|
|
return pinia
|
|
})
|