react-spring icon indicating copy to clipboard operation
react-spring copied to clipboard

items not dismounted in useTransition

Open einarlove opened this issue 7 years ago • 8 comments

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.

einarlove avatar Dec 13 '18 16:12 einarlove

This was fixed today (7.1.1).

drcmda avatar Dec 13 '18 17:12 drcmda

I'm on [email protected] 😭

einarlove avatar Dec 13 '18 17:12 einarlove

I forked and updated the CodeSandbox to use 7.1.1. Unfortunately, it does not work. https://codesandbox.io/s/vvlx67m375

einarlove avatar Dec 13 '18 17:12 einarlove

You're right ... weird. We just had this issue. Hang in there. :-)

CC @ruggedy

drcmda avatar Dec 13 '18 17:12 drcmda

Gonna have a look

ruggedy avatar Dec 13 '18 17:12 ruggedy

Thanks @ruggedy ! Released a patch: 7.1.2

drcmda avatar Dec 14 '18 12:12 drcmda

resolved by #378

ruggedy avatar Dec 14 '18 12:12 ruggedy

@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).

desmap avatar Jan 05 '19 08:01 desmap