#59193·ant-design

Refactor ReactNode renderability guards across rc-components

Author: QDyanbingCreated Sep 2, 2026Updated Sep 28, 2026
Labels👷🏻‍♂️ Someone working on it

Reproduction link

https://github.com/react-component/cascader/pull/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