Closed Xay7 closed 1 month ago
This is most likely due to the behaviour of pick/omit. These operations can get heavy on large objects. The plugin ignores the complexity of the state and naively apply the operations, which can result in performance drop.
If you need persistence in a store that with this specificity (only persist a small bit of data out of a massive state), I'd not use the plugin and use something like vueuse's useLocalStorage only for that bit of data.
This isnt really an "issue" as this is expected behaviour due to how the plugin is built and process mutations
Are you using Nuxt?
Describe the bug
When there's a non persisted large object in the store and another persisted state in the store is updated, the app becomes noticeably slower.
Reproduction
https://stackblitz.com/edit/github-fc5fmk?file=src%2Fcomponents%2FHelloWorld.vue
System Info
Used Package Manager
pnpm
Validations