Skip to content

Commit

Permalink
fix bundle size regression
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 4, 2019
1 parent caf00db commit b3c8b04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/integrations/preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ export function connect(mapStateToProps, actions) {
let mapped = mapStateToProps(store ? store.getState() : {}, this.props);
for (let i in mapped) if (mapped[i]!==state[i]) {
state = mapped;
this.setState();
return;
return this.setState();
}
for (let i in state) if (!(i in mapped)) {
state = mapped;
this.setState();
return;
return this.setState();
}
};
this.componentWillReceiveProps = update;
Expand Down

0 comments on commit b3c8b04

Please sign in to comment.