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

Would you are planning to support vue2.x? #27

Closed benweng closed 2 years ago

benweng commented 2 years ago

It's unsupported in vue2.x ,right?

Seb-L commented 2 years ago

It is supported if you use vue-composition-api, like here: https://seb-l.github.io/pinia-plugin-persist/#vue2

benweng commented 2 years ago

It is supported if you use vue-composition-api, like here: https://seb-l.github.io/pinia-plugin-persist/#vue2

it get wrong if this store add attribute 'persist'! "Error: [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function."