Skip to content

Commit

Permalink
feat(nuxt): explicit Nuxt plugin name (pinia-plugin-persistedstate)
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Dec 16, 2024
1 parent c71d618 commit a0a4c51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function piniaPlugin(context: PiniaPluginContext) {
)
}

export default defineNuxtPlugin(({ $pinia }) => {
($pinia as Pinia).use(piniaPlugin)
export default defineNuxtPlugin({
name: 'pinia-plugin-persistedstate',
setup({ $pinia }) {
($pinia as Pinia).use(piniaPlugin)
},
})

0 comments on commit a0a4c51

Please sign in to comment.