Repository navigation
Conversation
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👁 Visual Regression Report for PR #53844 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
WalkthroughThis pull request focuses on optimizing the performance of the Tooltip component in development mode by reducing unnecessary renders. It achieves this by upgrading the Changes
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 7.76MB (206.98%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
| "@rc-component/tree": "~1.0.1", | ||
| "@rc-component/tree-select": "~1.1.2", | ||
| "@rc-component/trigger": "~3.1.0", | ||
| "@rc-component/trigger": "^3.4.0", |
There was a problem hiding this comment.
以前就是 ^,上一个 contributor 不小心把 ^ 改成 ~ 提交了:
Line 123 in 161b0f5
Deploying ant-design with
|
| Latest commit: |
61e440b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fe753e76.ant-design.pages.dev |
| Branch Preview URL: | https://perf.ant-design.pages.dev |
|
提升效果写到 changelog 里吧。 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #53844 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 787 787
Lines 14291 14291
Branches 3780 3780
=========================================
Hits 14291 14291 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
ref #50443
💡 Background and Solution
Dev 模式下,React 会对
createElement和cloneElement注入额外的代码:Dev
Prod
所以在 dev 模式下,Tooltip 的嵌套
createElement与cloneElement会产生大量的 ObjectdefineProperty操作。这会导致浏览器对 Object 对象进行降级,从而影响渲染速度。提升后的@rc-component/trigger在渲染时会少渲染 2 个createElement和 1 个cloneElement。加上之前的 babeltarget升级能进一步提升开发体验:裸渲染 10000 条 Tooltips 效果
📝 Change Log