Repository navigation
Open
Description
Reproduction link
Steps to reproduce
- Audit rc-components for truthy or handwritten null checks applied to ReactNode values.
- Compare the guards with @rc-component/util isReactRenderable and isNonNullable semantics.
- Migrate only display guards whose intended behavior matches the shared helpers.
What is expected?
ReactNode display checks use shared @rc-component/util helpers consistently, including support for numeric zero, and each affected package declares a compatible minimum util version.
What is actually happening?
Several rc packages still use local truthy or handwritten null checks, which makes renderability boundaries inconsistent and may omit valid numeric zero content.
| Environment | Info |
|---|---|
| antd | unknown |
| React | 19.2.8 |
| System | darwin 25.6.0 |
| Browser | - |
用于集中跟踪多个 rc-components 仓库的迁移工作。
相关 PR:
- refactor: use renderable guards for option icons react-component/cascader#664
- refactor: use renderable guards for panel content react-component/collapse#455
- refactor: use renderable guards for input adornments react-component/input#203
- fix: preserve zero-valued suffix content react-component/input#205
- refactor: use renderable guards for input adornments react-component/input-number#753
- fix: preserve zero-valued step handlers react-component/input-number#756
- refactor: use renderable guard for menu item extras react-component/menu#894
- fix: preserve zero-valued item and expand icons react-component/menu#897
- refactor: use shared renderability guards react-component/notification#410
- refactor: use renderable guards for overflow adornments react-component/overflow#71
- fix: preserve zero-valued overflow indicators react-component/overflow#73
- refactor: use shared renderability guards react-component/picker#1009
- refactor: use shared renderability and value guards react-component/select#1252
- fix: preserve zero-valued dropdown content and icons react-component/select#1254
- refactor: use shared non-nullable guards react-component/steps#397
- fix: preserve zero-valued step content and icon styles react-component/steps#399
- refactor: use shared value and renderability guards react-component/table#1511
- fix: preserve zero-valued column titles react-component/table#1516
- refactor: use renderable guards for tab content react-component/tabs#1021
- refactor: use renderable guard for suffix react-component/mentions#337
- refactor: use renderable guard for marks react-component/slider#1094
- refactor: use renderable guards for panel content react-component/dialog#587
- refactor: use renderable guards for pagination items react-component/pagination#721
- fix: preserve zero-valued content and valid jumper markup react-component/pagination#723
- refactor: use renderable guard for placeholder react-component/image#532
- fix: handle empty covers and zero-valued close icons react-component/image#534
- refactor: use renderable guards for node icons react-component/tree#1073
- fix: preserve zero-valued icons and checkable content react-component/tree#1077
- fix: preserve zero-valued checkable content react-component/tree-select#689
- fix: preserve zero-valued close icon overrides react-component/tour#112
- fix: preserve zero-valued children react-component/mutate-observer#39
- refactor: use the shared non-nullable overlay guard react-component/tooltip#546
迁移时需区分 ReactNode 展示判断与普通布尔状态判断,并将 @rc-component/util 最低版本同步提升到包含 helper 的 ^1.13.0。
Generated by @ant-design/cli
Reacted by dosubot and 多格
Activity
github-actions commentedon Sep 18, 2026
@QDyanbing 这个 issue 已经超过 14 天没有更新或关联 PR。如果您仍在处理这个 issue,请更新进度;如果您无法继续处理,请联系维护者重新分配。
This issue has been inactive for more than 14 days without any updates or linked PR. If you are still working on this issue, please provide a progress update. If you are unable to continue, please contact the maintainers for reassignment.