Lee Bannard
Lee Bannard
Sure, I'll be able to take a look in the next couple of days.
@gaearon I have been working on this, but I am new to the dark arts of HMR and I have a question. In the following module taken from the counter...
Ah, thanks! That makes total sense. I should read my error messages. The error thrown on iteration is caused by the `Connect` already being hooked up and `mapStateToProps` being triggered...
So to achieve our goal that devtools issue will need to be addressed too I guess. Having this error thrown from the dispatch in `replaceReducers` is resulting in `[HMR] Cannot...
Ah yes, I see. Quick fix attempt here #807
Defining a memoized selector function in a module and importing it into different smart components should work fine. You can open an issue over at the [Reselect](https://github.com/faassen/reselect) repo if you...
No, it won't duplicate work (assuming the selector is being used as the mapStateToProps argument to Connect). Action type checking with switch statements is the standard approach among flux implementations....
@tnrich I have fleshed out the answer to this (it applies in the common case but there are caveats) in the [Reselect FAQ](https://github.com/faassen/reselect#q-can-i-share-a-selector-across-multiple-modules).
I think this is a good idea. The linked React Router boilerplate answer is good, I would be happy to adopt that.