Skip to content

Commit

Permalink
Revert unnecessary breaking change.
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jun 1, 2016
1 parent 57c180f commit 910353c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,8 @@ class Router extends Component {

routeTo(url) {
this._didRoute = false;
if (url!==this.state.url) {
this.setState({ url });
if (!this._didRoute) {
this.forceUpdate();
}
}
this.setState({ url });
this.forceUpdate();
return this._didRoute;
}

Expand Down

0 comments on commit 910353c

Please sign in to comment.