Vite remix css in js template #10629
Unanswered
19Qingfeng
asked this question in
Q&A
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.
-
I have reviewed the template examples in the community and found that there is no CssINJs solution based on Vite.
I am trying to follow https://github.com/remix-run/examples/blob/main/emotion/app/entry.server.tsx
Firstly: 1 In the case of using cssinjs, I must modify my renderToPipeableStream to renderoString.
Secondly, after using renderoString, due to the server issuing the style tag to the client for hydration following the example, rendering null resulted in the client uninstalling and rehydrating, leading to the loss of cssinjs style on the page.
I have tried switching all my NextJS to Remix, and Remix is indeed very powerful. But I am still troubled by the use of cssinjs
Beta Was this translation helpful? Give feedback.
All reactions