Skip to content

Preact toChildArray does not assign keys #2888

Description

@just-boris

Reproduction

https://fanatical-dot-bumper.glitch.me/

In React documentation, they say

That is, toArray prefixes each key in the returned array so that each element’s key is scoped to the input array containing it.

In other words, it will assign keys, even if they were undefined before. This is not the case for Preact's implementation and causes issues when using preact/compat

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions