103 Early Hints for main css + renderToNodeStream/pipeToNodeWritable #18205
Unanswered
209
asked this question in
CLI - SSR mode
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.
-
We can to make render function more better if add this flow (ssr-prod-webserver.js)
But we need to separate render-template.js
We need to cut render-template into small pieces
And we need reorganizate render:
I think reason of adding headTags afrer renderToString is useMeta.. But I don't check it.
In stream we need add ssrContext in the end of head for better loading in browser.
And we need to write safety code: don't update stores in renderToString.
Or we can add script with SSR context and main module script after renderToString, in the end of body.
It's not the best way, but now it work similary: scrips start to load after load index.html
And if you'll implement #18203
everybody can modify
Beta Was this translation helpful? Give feedback.
All reactions