Why only add <style></style> in browser (Remix) #11
HurricanKai
started this conversation in
Question
Replies: 1 comment
-
Yes, this issue will fixed at #10 Thanks for your reminder. 🥳 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The remix docs mention this line
{typeof window !== 'undefined' && window && <style></style>}
, if my understand is correct this is suggesting to only include the empty style element (I guess that master styles populates) on the client side. Why is this the case? Seems like including it on the server side has no downsides?In general I'm unsure how SSR with this can work. Seems like it's only intended for client side usage. Is that because it breaks on hydration (-> using it only on the server is an option) or does it need some client side information?
Beta Was this translation helpful? Give feedback.
All reactions