Skip to content

[BUG-33] Pluralization collisions drop children; two children systems disagree on shape #44

Description

@shroy

Severity: P2 · Batch: B7 (children unification)

Location

src/utils/strings.js:24-32 + src/utils/children.js:25-37; divergence vs src/hooks/useChildren.js:107-118

Root cause

box/boxes markers collide (pluralize('boxes')boxeses; addPluralizedChild silently no-ops when the plural key holds a non-array); single-child extraction creates no plural key at all in component props, while useChildren always creates both — the two children systems disagree on shape.

Proposed fix

Part of children unification (B7): one implementation with defined singular/plural shape; guard collisions.

Verification recipe

Spec: component with children markers box and boxes; extract props-children; document which markers are dropped/miskeyed. Also: single child via props → assert no plural key, vs useChildren → both keys (shape divergence).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions