filebrowser/frontend/src/stores/index.ts
kloon15 5100e587d7
feat: migrate to vue 3 (#2689)
---------

Co-authored-by: Joep <jcbuhre@gmail.com>
Co-authored-by: Omar Hussein <omarmohammad1951@gmail.com>
Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
2024-04-01 17:18:22 +02:00

13 lines
298 B
TypeScript

import { createPinia as _createPinia } from "pinia";
import { markRaw } from "vue";
import { Router } from "vue-router";
export default function createPinia(router: Router) {
const pinia = _createPinia();
pinia.use(({ store }) => {
store.router = markRaw(router);
});
return pinia;
}