Skip to content

Issue with component recycling? #19

Description

@sluukkonen

Hi,

I'm having some problems with this library. After the first transition, the the new child entering the transition group already has the foo-leave and foo-leave-active classes already set, which breaks the animations. If I patch Preact to disable component recycling (e.g. by making collectComponent a no-op), the issue disappears. Am I doing using something wrong here, or is this a real issue?

Test case: https://codesandbox.io/s/72mq76qow6 (click Next Page twice to trigger the issue)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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