You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, you can only render a component if all the data is present. This wastes an opportunity to stream markup we can already generate — it's very likely that we can print out the doctype and (most of) the <head> immediately, for example, even if the server is waiting on a database or network request for everything else.
Perhaps this could just mean that top-level data properties could be promises, and they would get Promise.resolve(...)'d.
At present, you can only render a component if all the data is present. This wastes an opportunity to stream markup we can already generate — it's very likely that we can print out the doctype and (most of) the
<head>
immediately, for example, even if the server is waiting on a database or network request for everything else.Perhaps this could just mean that top-level data properties could be promises, and they would get
Promise.resolve(...)
'd.Would need a new API:
If we had some way for components to fetch their own data asynchronously, this would enable that to work with SSR as well:
Open to bike-shedding!
The text was updated successfully, but these errors were encountered: