Skip to content

Issue with component recycling? #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sluukkonen opened this issue Mar 12, 2018 · 0 comments
Open

Issue with component recycling? #19

sluukkonen opened this issue Mar 12, 2018 · 0 comments

Comments

@sluukkonen
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant