Soft navigation on static route isn't incrementally renderer #79032
Unanswered
lmatteis
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a static route which is huge for purpose of testing incremental rendering. It's rendering a huge number (~400kb) after which it renders a text "Done!" (I'm using HTTP2 setup to allow for streaming in raw data)
When turning off javascript (getting the raw HTML) behavior is as expected. Number is shown and "Foo" route appears streamed in after which the "Done!" text appears (simulating 4g connection). Meaning I can see the top content immediately as the number streams in:
test-1.mov
With javascript on however, using soft navigation, this doesn't happen. The entire page just hangs there without the header text changing or the number changing. And it all appears at the end - all at once:
test-12.mov
Note that this has nothing to do with Suspense streaming. It's just standard browser HTTP transfer and HTML rendering at play. My feeling is that the soft navigation uses the RSC streaming format, which is received in chunks (via HTTP2), but doesn't know what to render and when to render it... while HTML+browser knows better how to incrementally render things even if it doesn't have a complete tree yet.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions