Skip to content

Commit 8bc405d

Browse files
committed
Call map fn(s) for impure components
Closes #118
1 parent 65256f4 commit 8bc405d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/createConnect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export default function createConnect(React) {
9090

9191
shouldComponentUpdate(nextProps, nextState) {
9292
if (!pure) {
93+
this.updateStateProps(nextProps);
94+
this.updateDispatchProps(nextProps);
9395
this.updateState(nextProps);
9496
return true;
9597
}

0 commit comments

Comments
 (0)