iWeltAG / pinia-cached-store

Pinia store extension that allows transparent caching of state in local storage.
https://www.npmjs.com/package/pinia-cached-store
MIT License
21 stars 0 forks source link

Vue 2 (and Nuxt) support #1

Closed productdevbook closed 2 years ago

productdevbook commented 3 years ago

vue 2 used nuxt now

yrd commented 3 years ago

What have you tried so far? This plugin is currently only compatible with Vue 3. Do you need the former version?

productdevbook commented 3 years ago

Yes because used nuxt vue 2

productdevbook commented 3 years ago

and 'defineCachedStore' is declared but its value is never read.ts(6133) ts error

yrd commented 3 years ago

I'm sorry, I can have a look later this week and see to get Vue 2 support working. And may I ask what you are trying to accomplish? Judging by your screenshot earlier you are trying to use actions with the cached store - which is not possible. Once you mark a store as caching it becomes read-only (with the exception of $load()).

productdevbook commented 3 years ago

I'm sorry, I can have a look later this week and see to get Vue 2 support working. And may I ask what you are trying to accomplish? Judging by your screenshot earlier you are trying to use actions with the cached store - which is not possible. Once you mark a store as caching it becomes read-only (with the exception of $load()).

I will test what you said.

yrd commented 3 years ago

I've just published version 0.1.2 which switches to vue-demi and therefore should support Vue 2. Would you mind testing?

yrd commented 3 years ago

@productfrontenddeveloper Have you gotten around to testing it yet?

productdevbook commented 3 years ago

I haven't had a chance to test it yet.

productdevbook commented 2 years ago

iam sory we project change vue3/vite :/ dont tested