site: fix antd web3 style in ssr mode #1276
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复 SSR 渲染的 HTML 中 antd web3 样式丢失的问题:
原因:使用 18.3.0-canary-c3048aab4-20240326 版本的 react 导致,antd web3 和 dumi 的 @ant-design/cssinjs 版本不一致,使得 StyleProvider 不一致导致样式的 cache 配置不生效,需要手动通过 alias 指定一下版本。
修复后:
close #1264