Closed mlodato517 closed 6 years ago
Never mind, it appears that when the listeners loop is called, the length is always 0, so that's good. It seems that listener() is only called in the debounced function call. But am I correct in thinking that mapStateToProps and render shouldn't be called until notify is called?
I should mention that I also have reselect installed. Not sure if that changes the timing of when mapStateToProps is called.
Yes, this seems to be an issue of reselect. I switched to another branch that never had reselect installed and the notify scheme seemed to work. Sorry about that.
Hi, I'm not sure if my project is set up weird or anything, but I have a store that looks like
And a very simple application with one text field that, when I type into it, it dispatches an action to update some text on the screen. I've entered logging statements in
mapStateToProps
,render
, the reducer, and innotifyAndSetFlag
. When I type "asdf" quickly, I would normally expect to seeBut instead I see
Is my store set up incorrectly or is this an issue with batched subscribe or is there some other problem? When I put in a breakpoint, it looks like
is still being called in redux
dispatch()
. Should that not happen?