Skip to content

Changing state causes rerender that breaks animations #191

Open
@cdfa

Description

@cdfa

Hi, I am trying to use the <Toggle> container to control the animation of a component, but the animations snaps between start and end instead of actually animating. This seems to be due to the children of the <Toggle> being completely re-rendered, instead of receiving new prop values.

I think styleguidist had a similar issue: styleguidist/react-styleguidist#51

If you want I can provide a reproduction repo, but the setup is a little complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions