Skip to content

Commit

Permalink
No need to setState when component did mount. Refs gaearon#23
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Mar 22, 2015
1 parent 993aaa3 commit 2eb967f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/utils/connectToStores.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export default (Component, stores, pickProps, getState) => {
stores.forEach(store =>
store.addChangeListener(this.handleStoresChanged.bind(this))
);

this.setState(this.getStateFromStores(this.props));
}

componentWillReceiveProps(nextProps) {
Expand Down

0 comments on commit 2eb967f

Please sign in to comment.