Files
dancefinder-app/plugins/pinia.ts
T

11 lines
250 B
TypeScript
Raw Normal View History

2023-08-01 20:21:31 +02:00
import { createPersistedState } from 'pinia-plugin-persistedstate'
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin(({ $pinia }) => {
$pinia.use(
createPersistedState({
key: id => `dancefinder_${id}`
2023-08-01 20:21:31 +02:00
})
)
})