[RFC] Reusable cssinjs content from SSR & css file #43674
zombieJ
announced in
RFCs - archive
Replies: 2 comments 2 replies
-
Is cache still inserted? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
When inline HTML & css file contains the style UI needed. Reuse it without create cssinjs style.
Basic example
Motivation
In modern web app, SSR is common usage which means style is already generated on the server side. So the first mount of component no need to do the cssinjs generate process. Just reuse it.
Detailed
<Style />
tag or style selector mark to tell what have already prepared.recycling
check the style selector to get full list by token level.Drawbacks
Need StyleProvider config open to avoid SSR not fully provide style.
Adoption strategy
Provided in
@ant-design/cssinjs
.Beta Was this translation helpful? Give feedback.
All reactions