-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[example] Avoid double rendering in the Remix example #30366
Conversation
Tried replacing my solution that has double rendering with this one and I'm getting
Not sure on whose side the problem is |
@jansedlon The class names mismatch is from Should we handle #30213 (comment) here? |
@oliviertassinari You're right. I had a few issues with css order so I just added Edit: Looks like that links (fonts and tailwind) are duplicated in head (but according to devtools fetched only once, so that's good) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Better than double rendering.
Will handle it in a follow up, thanks for linking it. |
Nice, this looks great! |
Resolves #29952 (comment)
The goal is to avoid double rendering on the server. It was solved by injecting the emotion style tag after a specific
meta
tag in the head. It is similar to the newinsertionPoint
option recently added in emotion - emotion-js/emotion#2521I could use some help testing out, to make sure I didn't miss anything.