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
I got Streaming Server Side Rendering working with my Deno Web Framework and I would like to use Emotion and also MaterialUI.
Expected behavior 🤔
When doing Streaming Server Side Rendering, the <style> tags are rendered before the component and they contain all the css needed to display that component. This way the component and the style tags can be sent to the browser while other components are still rendering on the server.
As you can see, only the emotion call is rendered correctly and the MaterialUI parts are not. They do work and emotion does pick them up but only in the browser and after a considerable amount of time loading dependencies. This means I get a Flash of Unstyled Content for around 5 seconds while the red text is already there from the first paint it got streamed into the browser.
Please support Streaming Server Side Rendering because Emotion supports this.
Context 🔦
I am NOT using Node.js but using Deno. Deno supports Web Streams. My React Web Framework supports Streaming Server Rendering by utilizing Web Streams. Emotion supports Streaming Server Rendering. MaterialUI does not.
Your environment 🌎
System:
OS: Linux 5.10 Manjaro Linux
Binaries:
Node: 17.5.0 - ~/.nvm/versions/node/v17.5.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v17.5.0/bin/yarn
npm: 8.4.1 - ~/.nvm/versions/node/v17.5.0/bin/npm
Browsers:
Chrome: Not Found
Firefox: 101.0
npmPackages:
typescript: ^4.6.4 => 4.7.3
The text was updated successfully, but these errors were encountered:
michaldudak
changed the title
Streaming Server Side Rendering doesn't work. Emotion by itself does work.
[core] Streaming Server Side Rendering doesn't work. Emotion by itself does work.
Jul 1, 2022
@garronej thanks for getting into this. I understand that it's going to be a long term thing. Implementing Streaming SSR was a research/fun project for me and MaterialUI is my go-to UI framework :)
Duplicates
Latest version
Current behavior 😯
Hi!
I got Streaming Server Side Rendering working with my Deno Web Framework and I would like to use Emotion and also MaterialUI.
Expected behavior 🤔
When doing Streaming Server Side Rendering, the
<style>
tags are rendered before the component and they contain all the css needed to display that component. This way the component and the style tags can be sent to the browser while other components are still rendering on the server.Steps to reproduce 🕹
This renders to:
As you can see, only the emotion call is rendered correctly and the MaterialUI parts are not. They do work and emotion does pick them up but only in the browser and after a considerable amount of time loading dependencies. This means I get a Flash of Unstyled Content for around 5 seconds while the red text is already there from the first paint it got streamed into the browser.
Please support Streaming Server Side Rendering because Emotion supports this.
Context 🔦
I am NOT using Node.js but using Deno. Deno supports Web Streams. My React Web Framework supports Streaming Server Rendering by utilizing Web Streams. Emotion supports Streaming Server Rendering. MaterialUI does not.
Your environment 🌎
System:
OS: Linux 5.10 Manjaro Linux
Binaries:
Node: 17.5.0 - ~/.nvm/versions/node/v17.5.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v17.5.0/bin/yarn
npm: 8.4.1 - ~/.nvm/versions/node/v17.5.0/bin/npm
Browsers:
Chrome: Not Found
Firefox: 101.0
npmPackages:
typescript: ^4.6.4 => 4.7.3
The text was updated successfully, but these errors were encountered: