Comparison between after change and direct change for store value #2625
-
Hi. I'm wondering, how can I get the immidiate value changes in the store? I have done a bit comparison between "way of getting" the data like below:
In my case, handleFetch will be executed after I change the value of "filter" in the store like:
But as the console.log says, the only method that listen to the change immidiately is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
.getState()
is the right way to get the latest value in a callback.