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
Looking at some Remix/React-Router issues (CC @sbesh91, this isn't the only issue though) and came across this.
At the moment we don't split the document following any suspended children, only insert placeholder comments & continue on, which can cause issues when rendering a full page as react-router does.
Will need to look at other implementations yet, not familiar enough to say whether we should be splitting in all cases or if this is something we only need to deal with for body/html.
Take this input (more or less adopted from Remix/React-Router's template):
TBD yet. #417 for sure, but I'm seeing a couple other things that I'm not quite whether they're just variations of this issue or distinct entities yet.
For example, the default remix page results in a stream that ends up looking like this:
Somehow the placeholder comment has escaped the original JSX structure altogether which is a bit surprising.
Edit: Oh, and it seems React will insert a <!DOCTYPE html> itself, thereby ensuring users aren't dropped into quirks mode which we don't do. Might not be a bad idea to prepend <html> with it though.
Looking at some Remix/React-Router issues (CC @sbesh91, this isn't the only issue though) and came across this.
At the moment we don't split the document following any suspended children, only insert placeholder comments & continue on, which can cause issues when rendering a full page as react-router does.
Will need to look at other implementations yet, not familiar enough to say whether we should be splitting in all cases or if this is something we only need to deal with for body/html.
Take this input (more or less adopted from Remix/React-Router's template):
This gives us stream chunks like this:
The first chunk closes the html element (
</html>
) and so all the other chunks that come after will cause predicable errors when loaded in the browser:The text was updated successfully, but these errors were encountered: