-
Notifications
You must be signed in to change notification settings - Fork 376
the bug of filter #240
Comments
reducer 和 filter都存在bug,我已经在开发中测试证明存在bug |
I am missing a codesandbox here so I can reproduce it out myself. Could you try to filter out the |
Or is that what you've tried to say in your comment? I cannot read any Asian characters. |
There are bugs in both reducer and filter. I have tested and proved that there are bugs in development.Paths can be used correctly, but it only supports functions similar to white list, and does not support functions similar to black list, so it will be troublesome in some scenarios. |
paths is ok.but paths is Inconvenient in my scene. |
I'm seeing this bug too. |
I too have this same issue, filter fires but has no effect. |
Same story |
same here, i have tried reduce and filter. no one work. |
Can someone who has issues with this create a reproducible sandbox please? |
I noticed that returning false in filter function prevent from running persist at that time, but the state is eventually persisted when the other mutation is called. Sample code: |
Looking at the implementation a bit more - |
vuex-persistedstate
version:2.7.0node
version:12.14.0npm
(oryarn
) version:6.13.4Relevant code or config
What you did:
I want all state to be persistent, except for state.name, The Mutations of state.name is “UPDATE_NAME”.
What happened:
I find state.name is persistent
Reproduction sandbox:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: