refactor: move composables/stores/plugins back to project root for Nuxt auto-imports
This commit is contained in:
parent
e1daaede27
commit
bc2babbe90
5 changed files with 8 additions and 10 deletions
7
plugins/piniaPersistedState.client.ts
Normal file
7
plugins/piniaPersistedState.client.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { defineNuxtPlugin } from "#app";
|
||||
import { createPersistedState } from "pinia-plugin-persistedstate";
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
// Register persisted state plugin for Pinia on client
|
||||
nuxtApp.$pinia.use(createPersistedState());
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue