Replies: 1 comment 4 replies
-
I've recently learned that Remix is doing that. Do you have any resource that would confirm that Next is doing the same? To the best of my knowledge - they don't do it. If I understand, their |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There seems to be a major push among major SSR frameworks like Next.js and Remix to hydrate the entire
document
, so everything from<html>
and up is controlled by React. It causes a rather fundamental incompatibility with how Emotion currently inserts style tags with its own<head>
management solution, as at any time React might choose to clobber any/all of the spurious Emotion tags there.Essentially they are forcing developers to use only their
<head>
management solution. Is there any way to disable the inbuilt one in Emotion, and somehow get a list of the appropriate<style>
tags to add to the official framework<head>
? Would implementing such a thing be hard, if I were to consider a PR?To clarify, a component like
<EmotionStyles/>
within the cache context that would return return a fragment containing<style>
tags. So the template for Remix might look like:Beta Was this translation helpful? Give feedback.
All reactions