You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just have a case where a parent is being removed and deeply nested a child uses layout animations.
When the parent gets removed, the parent itself stays, then all the children - except for the layout animation views using exiting get removed. Check this video of a reproduction I did:
That the parent stays wouldn't be weird if the children would be kept.
To maybe get a better feeling for the weirdness watch this video from our app (the button Refund has a LayoutAnimation on it to change the content smoothly):
Screen.Recording.2022-01-26.at.3.35.38.PM.mov
You can see that for one moment it shows just the blank parent container with the layout animation exiting, which feels weird.
So I have two ideas for that:
have the ability to change that all children are removed before the layout animation finishes
don't keep the parent 😅
I have the feeling that neither of these proposals are technically possible (or maybe even make sense). It's just that I wasn't expecting that behaviour, and I thought it would be worth discussing?
(Any ideas on how to prevent that from happening are more than welcome <3 )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just have a case where a parent is being removed and deeply nested a child uses layout animations.
When the parent gets removed, the parent itself stays, then all the children - except for the layout animation views using
exiting
get removed. Check this video of a reproduction I did:RPReplay_Final1643207038.mp4
Code for reproduction
That the parent stays wouldn't be weird if the children would be kept.
To maybe get a better feeling for the weirdness watch this video from our app (the button
Refund
has a LayoutAnimation on it to change the content smoothly):Screen.Recording.2022-01-26.at.3.35.38.PM.mov
You can see that for one moment it shows just the blank parent container with the layout animation exiting, which feels weird.
So I have two ideas for that:
I have the feeling that neither of these proposals are technically possible (or maybe even make sense). It's just that I wasn't expecting that behaviour, and I thought it would be worth discussing?
(Any ideas on how to prevent that from happening are more than welcome <3 )
Beta Was this translation helpful? Give feedback.
All reactions