Skip to content

bug: TransitionGroup assumes that at least two children will be present #24

@K4rakara

Description

@K4rakara

On this line, the TransitionGroup component accesses the memo of its children. In the event that props.children is this:

[
  <div></div>,
]

then the memo of its children will resolve to just <div></div> instead of [<div></div>], which causes a type error on the next line, as a div itself is not spreadable.

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