Skip to content

Just warn on clashing keys but proceed with render #566

@sophiebits

Description

@sophiebits

We've hit a couple bugs in prod now where keys are supposed to be distinct but aren't, which causes React to throw errors and render nothing.

It would be nice if React could instead warn and render all the components anyway (perhaps adding some suffix to make the keys unique) or render only one of the components with the same ID. Both of these seem preferable to completely dying (though maybe this is just our fault for not properly having our JS error reporting figured out…).

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