We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70b24d commit fd5f5dbCopy full SHA for fd5f5db
src/components/createProvider.js
@@ -27,8 +27,13 @@ export default function createProvider(React) {
27
}
28
29
componentWillReceiveProps(nextProps) {
30
- const nextDispatcher = nextProps.redux.getDispatcher();
31
- this.state.redux.replaceDispatcher(nextDispatcher);
+ const { redux } = this.state;
+ const { redux: nextRedux } = nextProps;
32
+
33
+ if (redux !== nextRedux) {
34
+ const nextDispatcher = nextRedux.getDispatcher();
35
+ redux.replaceDispatcher(nextDispatcher);
36
+ }
37
38
39
render() {
0 commit comments