Merge pull request #745 from nateq314/patch-1

Fix cDU to correctly make async request
This commit is contained in:
Brian Vaughn
2018-03-30 08:55:21 -07:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ class ExampleComponent extends React.Component {
// highlight-range{1-5}
componentDidUpdate(prevProps, prevState) {
if (prevState.externalData === null) {
if (this.state.externalData === null) {
this._loadAsyncData(this.props.id);
}
}