We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff56611 commit d7a1c5bCopy full SHA for d7a1c5b
src/components/Connector.js
@@ -39,6 +39,14 @@ export default class Connector extends Component {
39
this.unsubscribe = context.redux.subscribe(this.handleChange);
40
}
41
42
+ componentWillReceiveProps(nextProps) {
43
+ if (nextProps.select !== this.props.select) {
44
+ // Force the state slice recalculation
45
+ const atom = this.context.redux.getAtom();
46
+ this.handleChange(atom);
47
+ }
48
49
+
50
componentWillUnmount() {
51
this.unsubscribe();
52
0 commit comments