Skip to content

Refactor ReactNode renderability guards across rc-components #59193

Open

Description

@QDyanbing

Reproduction link

react-component/cascader#664

Steps to reproduce

  1. Audit rc-components for truthy or handwritten null checks applied to ReactNode values.
  2. Compare the guards with @rc-component/util isReactRenderable and isNonNullable semantics.
  3. 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:

迁移时需区分 ReactNode 展示判断与普通布尔状态判断,并将 @rc-component/util 最低版本同步提升到包含 helper 的 ^1.13.0。


Generated by @ant-design/cli

Activity

  1. added theissue type on Sep 2, 2026
  2. self-assigned this
    on Sep 2, 2026
  3. github-actions commented on Sep 18, 2026

    @github-actions
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions