Files
react.dev/examples
Nathan Quarles 51a864d858 Fix cDU to correctly make async request
When a new `id` prop is passed in, `getDerivedStateFromProps` sets `this.state.externalData` to `null`. If I understand the new API correctly the return value of gDSFP() either becomes the new state or is merged into the new state? If so, then `componentDidUpdate` should examine the new state (`this.state.externalData`), not `prevState.externalData`.
2018-03-30 11:44:46 -04:00
..
2018-03-07 11:44:18 -08:00