Notes from Dan Abramov’s Beyond React 16 Talk
Currently, React makes updates synchronously. Once React starts rendering, it can’t stop.
What if React can make updates asynchronously so that once it start rendering, it can yield back to the browser. For example, if there’s a higher priority event like an input, the browser can handle that first and not block the thread.
In async mode, the user can still interact with the app while the it’s mounting.
import { createFetcher, Placeholder, Loading } from '../future';
The fetcher object will work as a cache and has a read method. It will get data from the cache first.
The app will be fully interactive while the data is fetching, and there are no race conditions when we click around the app, triggering different fetches.
Code Splitting FTW!
Awesome demos Dan! I can’t wait to try these new features out!