From a2139ded8a32a7e71e51d8edcf74a502aeb2dde7 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 24 Mar 2018 18:23:13 +0000 Subject: [PATCH] Add a note about suspense --- content/blog/2018-03-15-update-on-async-rendering.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/blog/2018-03-15-update-on-async-rendering.md b/content/blog/2018-03-15-update-on-async-rendering.md index 45fcdfffa..83db28b79 100644 --- a/content/blog/2018-03-15-update-on-async-rendering.md +++ b/content/blog/2018-03-15-update-on-async-rendering.md @@ -80,6 +80,8 @@ There is a common misconception that fetching in `componentWillMount` lets you a > Note > > 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). +> +> 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. ### Adding event listeners (or subscriptions)