Jack Works
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 ``...
 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...
 `.inserted` is empty. Still investigating...
  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...