Skip to content

useTransition is not interpolating to correct final value #633

Closed
@sjnonweb

Description

@sjnonweb

🐛 Bug Report

The title is pretty much self explanatory. The final value is always off by a small margin.
Another interesting thing as pointed by @meesvandongen is triggering re-render makes it go to correct value.

To Reproduce

https://codesandbox.io/s/6z9kn5p1zw

Expected behavior

Interpolate to correct final value

Link to repro (highly encouraged)

https://codesandbox.io/s/6z9kn5p1zw

Environment

  • react-spring v8.0.19
  • react v16.8.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions