Skip to content

Commit 90b2d66

Browse files
committed
Add link to bug in React source that explains the workaround
1 parent b510c0d commit 90b2d66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/components/Routes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ var Routes = React.createClass({
257257
} else {
258258
// React does not invoke setState callback if we're still mounting
259259
// so we have to store it and invoke in componentDidMount.
260+
// https://github.com/facebook/react/blob/3bbed150ab58a07b0c4faf64126b4c9349eecfea/src/core/ReactCompositeComponent.js#L900
260261
this._initialSetStateCallback = handleStateChange;
261262
this.setState(nextState);
262263
}

0 commit comments

Comments
 (0)