-
Notifications
You must be signed in to change notification settings - Fork 50.4k
Improved suspense support in ReactDOMServer #14161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved suspense support in ReactDOMServer #14161
Conversation
Details of bundled changes.Comparing: f9e9913...7483480 react-dom
scheduler
Generated by 🚫 dangerJS |
993d094 to
e7ec765
Compare
|
Updated based on recommendations from @sophiebits. 💯 |
sophiebits
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Feel free to squash-and-merge when you're ready.
e7ec765 to
7483480
Compare
|
@sophiebits Thanks for the review! I pushed up the changes, but I dont see a merge button, seems like I may not have permission. |
|
dom/src/server/ReactPartialRenderer.js
index 643d53cf0c3..c5f124e7c4a 100644
Can't be running in js try using HTML script for the patch for #6846
…On Thu, Nov 8, 2018, 6:54 PM Alex Taylor ***@***.*** wrote:
Updated based on recommendations from @sophiebits
<https://github.com/sophiebits>. 💯
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14161 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYjb0Li0DKHPcI-IuFII33pQnteWecrdks5utNI5gaJpZM4YVuTD>
.
|
I've updated the support for suspense in the ReactPartialRenderer. Instead of always rendering the fallback, the server renderer will attempt to render the children, and only revert to the fallback if rendering is suspended with a thrown promise.
Let me know what you think.