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
It is expected that the profile state value does not change
What is actually happening?
the profile state is change
The rootState parameter passed to an action, should be a complete copy of the state, not a reference. This allows me to change the state of another module without using an action or a commit for that module.
The text was updated successfully, but these errors were encountered:
As @sagadav quite rightly mentioned, rootState should be a reference. Actions are asynchronous, state can change at any point between an actions invocation and resolution.
Version
3.6.2
Reproduction link
https://codesandbox.io/s/dank-https-tqtvo?file=/src/store/index.js
Steps to reproduce
Change input value
What is expected?
It is expected that the profile state value does not change
What is actually happening?
the profile state is change
The rootState parameter passed to an action, should be a complete copy of the state, not a reference. This allows me to change the state of another module without using an action or a commit for that module.
The text was updated successfully, but these errors were encountered: