Seb-L / pinia-plugin-persist

Persist pinia state data in sessionStorage or other storages.
https://Seb-L.github.io/pinia-plugin-persist/
MIT License
214 stars 37 forks source link

Vue 2.7 + pinia + persist-cache Not working #58

Closed ebisbe closed 1 year ago

ebisbe commented 1 year ago

I have a project with Vue 2.7 and this plugin is not working. You can see a (non)working reproduction in here https://github.com/Elucid-Social/test-vue-apollo-cache/pull/1/files

The only difference is that now with Pinia we need to use VuePiniaPlugin

import { createPinia, PiniaVuePlugin } from 'pinia'

Vue.use(PiniaVuePlugin)
const pinia = createPinia()
ebisbe commented 1 year ago

My bad. It's working as expected on 2.7 as well. I placed the config options incorrectly.