Skip to content

Stale components are not removed properly #922

Closed
@Nantris

Description

@Nantris

🐛 Bug Report

When re-rendering a list and adding a children, the items are added after the existing elements in the DOM, the ones that should be removed. They're transitioned out, and something is getting removed, but not everything that needs to be

To Reproduce

Repro

Expected behavior

image

Elements render in-place, rather than each item addition resulting in a new set of entries below the existing.

Link to repro (highly encouraged)

Repro

Environment

  • react-spring v9.0.0-808.17
  • react v16.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions