-
Notifications
You must be signed in to change notification settings - Fork 46.4k
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
[Fizz] Implement renderDocument
#25970
Closed
Closed
Commits on Jan 16, 2023
-
renderIntoContainer allows you to stream react into a specific DOM node identified by a element ID. It returns a ReadableStream but differs from renderToReadableStream in that you get access to the stream syncronously. Since the top level Component gets inserted like a boundary I am calling what would normally be the "Shell" of a React app the Root Boundary when using renderIntoContainer. While the top level Components stream in like a boundary there is not actually a Suspense Boundary wrapper. However it will act like one in that stylesheets will be loaded before the content is revealed in the container Node. If stylehseet loading fails hydration will fall back to client rendering It allows the passing of fallback bootstrap scripts which are used if the Root Boundary errors.
Configuration menu - View commit details
-
Copy full SHA for 90d4c87 - Browse repository at this point
Copy the full SHA 90d4c87View commit details -
Configuration menu - View commit details
-
Copy full SHA for d19b102 - Browse repository at this point
Copy the full SHA d19b102View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c2c4a3 - Browse repository at this point
Copy the full SHA 0c2c4a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8be28e5 - Browse repository at this point
Copy the full SHA 8be28e5View commit details
Commits on Jan 17, 2023
-
refactor root boundary ID out of responseState and eliminate forking …
…in instruction writing
Configuration menu - View commit details
-
Copy full SHA for f472e4b - Browse repository at this point
Copy the full SHA f472e4bView commit details
Commits on Jan 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d6002cf - Browse repository at this point
Copy the full SHA d6002cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3273db7 - Browse repository at this point
Copy the full SHA 3273db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bad42a - Browse repository at this point
Copy the full SHA 9bad42aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e5cd60 - Browse repository at this point
Copy the full SHA 8e5cd60View commit details -
This commit adds the function renderIntoDocument in react-dom/server and adds the ability to embed the rendered children in the necessary html tags to repereset a full document. this means you can render "<html>...</html>" or "<div>...</div>" and either way the render will emit html, head, and body tags as necessary to describe a valid and complete HTML page. Like renderIntoContainer, renderIntoDocument provides a stream immediately. While there is a shell of sorts this fucntion will start writing content from the preamble (html and head tags, plus resources that flush in the head) before finishing the shell. Additionally renderIntoContainer accepts fallback children and fallback bootstrap script options. If the Shell errors the fallback children will render instead of children. The expectation is that the client will attempt to render fresh on the client.
Configuration menu - View commit details
-
Copy full SHA for 3ec1561 - Browse repository at this point
Copy the full SHA 3ec1561View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15e4c45 - Browse repository at this point
Copy the full SHA 15e4c45View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.