Browse Source

This is why you shouldn't Edit on GitHub without review

main
Sophie Alpert 7 years ago
committed by GitHub
parent
commit
a84d8e4e57
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/blog/2018-03-27-update-on-async-rendering.md

2
content/blog/2018-03-27-update-on-async-rendering.md

@ -94,7 +94,7 @@ There is a common misconception that fetching in `componentWillMount` lets you a
>
> In the longer term, the canonical way to fetch data in React components will likely be based on the “suspense” API [introduced at JSConf Iceland](/blog/2018/03/01/sneak-peek-beyond-react-16.html). Both simple data fetching solutions and libraries like Apollo and Relay will be able to use it under the hood. It is significantly less verbose than either of the above solutions, but will not be finalized in time for the 16.3 release.
>
> When supporting server rendering, it's currently necessary to provide the data synchronously – componentWillMount was often used for this purpose but the constructor can be used as a replacement. The upcoming suspense APIs will make async data fetching cleanly possible for both client and server rendering.
> When supporting server rendering, it's currently necessary to provide the data synchronously – `componentWillMount` was often used for this purpose but the constructor can be used as a replacement. The upcoming suspense APIs will make async data fetching cleanly possible for both client and server rendering.
### Adding event listeners (or subscriptions)

Loading…
Cancel
Save