Skip to content

Ensure table row keys stay unique for duplicate rowsΒ #552

@swelborn

Description

@swelborn

P2 Badge Ensure table row keys stay unique for duplicate rows

The new row key is derived by joining row values with "|", so rows that have identical values (or values containing |) will collapse to the same key. When that happens, React treats those rows as the same element and can reuse DOM nodes incorrectly, which will drop or misrender duplicate rows when live data updates. If table payloads can include repeated rows, use a real unique identifier or add a disambiguating fallback.

Useful? React with πŸ‘Β / πŸ‘Ž.

Originally posted by @chatgpt-codex-connector[bot] in #549 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions