You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unsure if it's an intended feature of this plugin or an overlooked "bug", but recently I encountered an issue where I was persisting an entire store to localStorage by accident in a Production app. To remedy this I added the paths option to only persist the values I required, however users who already had the entire store in their localStorage (including stale values) are finding the Pinia store being fully hydrated by whats in localStorage rather than just the values present in paths.
If you agree with the above solution I'm more than happy to put a PR in for it. Alternatively if this is an intended feature of the plugin then we could add another option to the Persistence interface to toggle my new feature on/off as I think other people may also find this useful.
Clear and concise description of the problem
I'm unsure if it's an intended feature of this plugin or an overlooked "bug", but recently I encountered an issue where I was persisting an entire store to localStorage by accident in a Production app. To remedy this I added the
paths
option to only persist the values I required, however users who already had the entire store in their localStorage (including stale values) are finding the Pinia store being fully hydrated by whats in localStorage rather than just the values present inpaths
.Suggested solution
If you agree with the above solution I'm more than happy to put a PR in for it. Alternatively if this is an intended feature of the plugin then we could add another option to the
Persistence
interface to toggle my new feature on/off as I think other people may also find this useful.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: