Seb-L / pinia-plugin-persist

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

fix(store): enable support for setup store #17

Closed stctheproducer closed 2 years ago

stctheproducer commented 3 years ago

Enables support for the setup stores, while retaining support for the options store by extending DefineStoreOptionsBase.

jaitaiwan commented 2 years ago

Hey @stctheproducer does this make #19 obsolete?

Seb-L commented 2 years ago

@jaitaiwan it seems yes. They changed the typing since the new version of Pinia, I'll try to merge that this week and check to be sure everything is still working well with vue2/3 and update the documentation.

Seb-L commented 2 years ago

PR https://github.com/Seb-L/pinia-plugin-persist/pull/19 merged, this would resolve this one as well, the documentation and publish will come soon.

jahnli commented 2 years ago

@Seb-L When will it be released? fix '"pinia"' has no exported member named 'GettersTree'. Did you mean '_GettersTree'?

1 import { StateTree, GettersTree, PiniaPluginContext } from 'pinia';