Skip to content

Commit a2139de

Browse files
committed
Add a note about suspense
1 parent 6eae811 commit a2139de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ There is a common misconception that fetching in `componentWillMount` lets you a
8080
> Note
8181
>
8282
> Some advanced use-cases (e.g. libraries like Relay) may want to experiment with eagerly prefetching async data. An example of how this can be done is available [here](https://gist.github.com/bvaughn/89700e525ff423a75ffb63b1b1e30a8f).
83+
>
84+
> 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 at the moment it is not quite ready yet.
8385
8486
### Adding event listeners (or subscriptions)
8587

0 commit comments

Comments
 (0)