-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat(ssr): support useServerInsertedHTML #11227
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Size Change: +1.08 kB (0%) Total Size: 9.86 MB
ℹ️ View Unchanged
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #11227 +/- ##
==========================================
- Coverage 29.15% 29.09% -0.06%
==========================================
Files 483 483
Lines 14607 14640 +33
Branches 3447 3454 +7
==========================================
+ Hits 4258 4259 +1
- Misses 9601 9632 +31
- Partials 748 749 +1
☔ View full report in Codecov by Sentry. |
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.
ssr.ts 里的改动我没咋看懂, @PeachScript 帮忙一起看下,包括是否会对 antd 的 ssg 有影响。
如果想把 style 都 extract 出来应该怎么用? |
4c86417
to
c4ef72e
Compare
Co-authored-by: Peach <scdzwyxst@gmail.com>
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.
+1
有空可以补一下文档,在 #11188 遇到了一例要插入 script 标签的,也可以使用这个 API 。 |
context, | ||
)) as ReactElement; | ||
|
||
const JSXProvider = createJSXProvider( |
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.
下面出口套过一个 JSXProvider 了,这里再套一次重复了。
之后 antd 的 css in js ssr 就可以这样写了