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

vue3 watch引用引入不对 #5

Closed wangdson closed 3 years ago

wangdson commented 3 years ago

import { watch } from '@vue/composition-api'; change to: import { watch } from '@vue/runtime-core'; runtime no error but not work

Seb-L commented 3 years ago

The previous version was made for vue2 compatibility, the latest version (v0.0.7) is using vue-demi for Vue3 compatibility and can be use for Vue2 and Vue3.