Skip to content

Make sure we do the child key warning for all cases #2496

@zpao

Description

@zpao

This should warn but doesn't

var f = <span/>
var g = <span/>

var children = [f, g];

return (
  <div>
    <div key="0">
      {g}
    </div>
    <div key="1">
      {f}
    </div>
    <div key="2">
      {children}
    </div>
  </div>
);

Turns out we're modifying f and g after the first time to set ._store.validated and then not looking again if already validated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions