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

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

Open benweng opened 2 years ago

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."

Originally posted by @benweng in https://github.com/Seb-L/pinia-plugin-persist/issues/27#issuecomment-1065924482

Seb-L commented 2 years ago

Do you have an example of your code ?