ice
ice copied to clipboard
feat: rsc to ssr
实现思路
- 使用 react-server-dom-webpack/server.edge 渲染出 RSC 产物(只渲染 Server Component)
- 使用 react-server-dom-webpack/client.edge 加载 RSC 产物(这里需要在 Server 端加载 Client Component,并进行渲染)
- 使用 react-dom/server.edge 渲染出完整首屏 HTML
Codecov Report
Attention: 114 lines in your changes are missing coverage. Please review.
Comparison is base (
c1deba8) 77.93% compared to head (2701ccf) 77.58%.
Additional details and impacted files
@@ Coverage Diff @@
## feat-rsc #6682 +/- ##
============================================
- Coverage 77.93% 77.58% -0.36%
============================================
Files 223 225 +2
Lines 19668 19782 +114
Branches 2461 2466 +5
============================================
+ Hits 15329 15348 +19
- Misses 4307 4402 +95
Partials 32 32
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.