react-transition-group
react-transition-group copied to clipboard
Inconsistent transition lifecycle when transitions disabled
We want to disable transitions in E2E tests. We have some logic associated with onEnter events, but those are not triggered when setting config.disabled = true.
What is the current behavior?
import { config, CSSTransition } from 'react-transition-group';
config.disabled = true;
<CSSTransition
onEnter={() => {
doStuffOnEnter();
}}
onEntered={() => {
doStuffOnEntered();
}}
>
doStuffOnEnter is not executed. Only doStuffOnEntered is executed.
What is the expected behavior?
All the events should be triggered in the correct order to imitate the real behavior.
Just stumbled across the same issue in our codebase :/ @Bartozzz Did you find any solution?