developit / developit/preact-css-transition-group

Issue with component recycling?

Open
#19 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
62
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.