items not dismounted in useTransition
Encountered some bugs trying to convert my <Transition> to useTransition. Tried to remove most of my code to find the bug but couldn't make it behave correctly. (Un)luckily it seems it's also failing in the CodeSandbox examples.
https://codesandbox.io/embed/1y3yyqpq7q
If you look in the DOM, the pages are not dismounted. Just fades to opacity: 0 while more and more pages are mounted.
This was fixed today (7.1.1).
I'm on [email protected] 😭
I forked and updated the CodeSandbox to use 7.1.1. Unfortunately, it does not work. https://codesandbox.io/s/vvlx67m375
You're right ... weird. We just had this issue. Hang in there. :-)
CC @ruggedy
Gonna have a look
Thanks @ruggedy ! Released a patch: 7.1.2
resolved by #378
@drcmda @ruggedy this bug seems to be back, check https://codesandbox.io/s/98j711344o and observe class='bg' in the Inspector. It doesn't get unmounted (react-spring v7.2.7).