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

fix: add options:detached about $subscribe #39

Open Allen-1998 opened 2 years ago

Allen-1998 commented 2 years ago

need to keep state subscriptions after the component is unmounted.

image

Allen-1998 commented 2 years ago

In some special cases,it is necessary to keep state subscriptions after the component is unmounted. So I think it's necessary to expose this configuration item.

Document: pinia

Allen-1998 commented 2 years ago

In some special cases,it is necessary to keep state subscriptions after the component is unmounted. So I think it's necessary to expose this configuration item.

Document: pinia

kevin262516 commented 2 years ago

Yes, I have the same problem. I think it's better for the task to expose the "subscriptions" configuration.

oydiligent commented 2 years ago

hi,I have the same problem. I hope it can be solved about subscriptions