Skip to content

Ensure table row keys stay unique for duplicate rows #552

Open

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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