reactjs / react-transition-group

An easy way to perform animations when a React component enters or leaves the DOM
https://reactcommunity.org/react-transition-group/
Other
10.15k stars 650 forks source link

No transaction/animation in the end with turned on unmountOnExit prop #883

Closed Andrew-Kovalenko closed 1 year ago

Andrew-Kovalenko commented 1 year ago

What is the current behavior?

Currently I'm using Transition component with mountOnEnter={true}, unmountOnExit={true}. Entering transaction/animation works fine, but in the end component immediately unmounted without any transaction/animation

What is the expected behavior?

When in props became false end transaction/animation should be ended and only after it component will be unmounted

Could you provide a CodeSandbox demo reproducing the bug?

https://codesandbox.io/s/compassionate-sinoussi-n9tnfg?file=/src/App.js