Skip to content

onRest() should only be called after a transition ends #110

@bpierre

Description

@bpierre

At the moment, onRest is called every time the component is rendered.

Here is a demo to compare this behavior with what react-motion does: https://codesandbox.io/s/3v99xomj2p

I think react-spring should follow the behavior of react-motion, where onRest only gets called after a transition ends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions