Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimatePresence doesn't catch up with multiple deletes in a row #1534

Closed
XiupengMa opened this issue May 14, 2022 · 2 comments
Closed

AnimatePresence doesn't catch up with multiple deletes in a row #1534

XiupengMa opened this issue May 14, 2022 · 2 comments

Comments

@XiupengMa
Copy link

I have a list of items that each of them has an exit animation. I have another button that can randomly delete an item from the list. if I quickly click the button for multiple times (i.e. faster than the animation duration), I saw the deleted items are no longer visible but their original space was still taken.

Demo: https://codesandbox.io/s/adoring-rubin-hsxcfh?file=/src/App.ts

see box 0 and 7 are removed but their space is still taken:

Screen Shot 2022-05-13 at 10 03 23 PM

@utileetdulce
Copy link

This seems to be related to
907
1439

@mattgperry
Copy link
Collaborator

This has been fixed since

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants