Skip to content
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

site: fix antd web3 style in ssr mode #1276

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

yutingzhao1991
Copy link
Collaborator

@yutingzhao1991 yutingzhao1991 commented Dec 4, 2024

修复 SSR 渲染的 HTML 中 antd web3 样式丢失的问题:
image

原因:使用 18.3.0-canary-c3048aab4-20240326 版本的 react 导致,antd web3 和 dumi 的 @ant-design/cssinjs 版本不一致,使得 StyleProvider 不一致导致样式的 cache 配置不生效,需要手动通过 alias 指定一下版本。

修复后:

image

close #1264

Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ant-design-web3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 2:34am

Copy link

changeset-bot bot commented Dec 4, 2024

⚠️ No Changeset found

Latest commit: 366e9ff

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

github-actions bot commented Dec 4, 2024

Preview is ready

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.99%. Comparing base (6192132) to head (366e9ff).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1276   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         858      858           
  Lines       14726    14726           
  Branches     1589     1589           
=======================================
  Hits        14725    14725           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thinkasany thinkasany changed the title docs: fix antd web3 style in ssr mode site: fix antd web3 style in ssr mode Dec 4, 2024
@thinkasany
Copy link
Collaborator

这边好像有点问题
image

@yutingzhao1991 yutingzhao1991 merged commit 020b483 into main Dec 4, 2024
14 checks passed
@yutingzhao1991 yutingzhao1991 deleted the fix/stylecache branch December 4, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] SSR 下挂载样式
2 participants