Skip to content

Bug: useSprings v9 fails to animate changing deps, report with a fix #714

@bebbi

Description

@bebbi

🐛 Bug Report

This sandbox should animate changed item heights every 2 seconds but it doesn't. A working fix is provided below.

To Reproduce

Check out sandbox, see how items stay static

Expected behavior

In the same sandbox, rename the useSprings hook call inside DraggableList to useSpringsFixed which is already imported.
--> Items now correctly change position every 2s.
The fix is based on a suggestion by @drcmda but my understanding is that v9 should correctly animate this without further code.

Link to repro (highly encouraged)

Sandbox above

Environment

  • react-spring v9.0.0-beta.23

Metadata

Metadata

Assignees

Labels

kind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions