Results 359 comments of Jack Works

Maybe `createCache` can receive the `isBrowser` from the options? > There is also a question here though - do you really want to run this in a DOM environment? or...

I'm still debugging this, it seems like @mui components do not use the cache I provided even I did as the mui document told 😂

Still debugging, not having a small repro. We have @mui and tss-react. Now I can get the CSS text from tss-react by your hack. @mui documentation said they use ``...

![image](https://user-images.githubusercontent.com/5390719/160594795-8abc487a-a7fa-4e09-9c7c-128dad520697.png) interesting, if I add @mui in your hack example, it works

Oh I know the reason, it's because we're using React 18!

Same code, works in React 17 but not in 18 React 17: https://codesandbox.io/s/emotion-issue-template-forked-ih4od6?file=/src/main.jsx React 18: https://codesandbox.io/s/emotion-issue-template-forked-dn5dqr?file=/src/main.jsx

Thanks for your help, I guess a worker will be the easiest way to do this. I'll try this tomorrow

> One thing that could potentially help you solve this right now: > 1. use patch-package to remove package.json#browser from our packages > 2. move the "server-rendering" to a web...

![image](https://user-images.githubusercontent.com/5390719/161211671-d44646c7-9891-406f-9114-f4c9eb2f61ee.png) `.inserted` is empty. Still investigating...

![image](https://user-images.githubusercontent.com/5390719/161213166-c3c49439-75db-42ea-a57a-e307f60c1ba6.png) ![image](https://user-images.githubusercontent.com/5390719/161213419-e769a1fd-32d7-4646-9f62-bafeeb017c5f.png) I think I find it out! (But it does not match the source code in GitHub, maybe it because webpack did something) > @Jack-Works do you have time...