Skip to content

Commit 85f3666

Browse files
authored
Merge pull request #745 from nateq314/patch-1
Fix cDU to correctly make async request
2 parents a5a622e + 51a864d commit 85f3666

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/update-on-async-rendering/updating-external-data-when-props-change-after.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ExampleComponent extends React.Component {
2525

2626
// highlight-range{1-5}
2727
componentDidUpdate(prevProps, prevState) {
28-
if (prevState.externalData === null) {
28+
if (this.state.externalData === null) {
2929
this._loadAsyncData(this.props.id);
3030
}
3131
}

0 commit comments

Comments
 (0)