chore: remove unstable api for React 19 compitable#55274
Conversation
|
|
👁 Visual Regression Report for PR #55274 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
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 Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
Summary of ChangesHello @li-jia-nan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the rendering mechanism by removing a temporary, unstable API ( Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly removes the deprecated unstableSetRender API, which was a temporary compatibility layer for React 19. The code is updated to use render and unmount from @rc-component/util directly, which simplifies the implementation. In components/modal/confirm.tsx, the local render function was also helpfully renamed to renderDialog to avoid shadowing the newly imported render function. The related tests, snapshots, and documentation have also been cleaned up accordingly.
I've found one critical issue in components/modal/confirm.tsx where the unmount function is called without the required container argument, which will cause an error. I've left a specific comment with a suggested fix. Besides that, the changes look good.
size-limit report 📦
|
Deploying ant-design-next with
|
| Latest commit: |
a02f91c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9d80626b.ant-design-next.pages.dev |
| Branch Preview URL: | https://rm-unstablesetrender-v6.ant-design-next.pages.dev |
Deploying ant-design with
|
| Latest commit: |
a02f91c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://68c4060f.ant-design.pages.dev |
| Branch Preview URL: | https://rm-unstablesetrender-v6.ant-design.pages.dev |
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 2.56kB (-0.02%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #55274 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 798 797 -1
Lines 14771 14752 -19
Branches 3897 3896 -1
=========================================
- Hits 14771 14752 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
官网挂了,需要等等这个: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|


Uh oh!
There was an error while loading. Please reload this page.