Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Custom arrayMerger is never called and discards store state #306

Open
shugydw opened this issue Aug 14, 2020 · 1 comment
Open

Custom arrayMerger is never called and discards store state #306

shugydw opened this issue Aug 14, 2020 · 1 comment

Comments

@shugydw
Copy link

shugydw commented Aug 14, 2020

  • vuex-persistedstate version: 3.1.0
  • node version: v8.16.2
  • yarn version: 1.22.4

What you did:

I am trying to build custom arrayMerger and put some if conditions. Based on it I would either merge or use store state or persisted state.

What happened:

The persisted state always takes over and discards the default store state.

Reproduction sandbox:

https://codesandbox.io/s/vuex-persistedstate-forked-izr4i

Problem description:

Custom arrayMerger is never invoked.

@shugydw
Copy link
Author

shugydw commented Aug 14, 2020

Might be related to #293 as well!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant