motion
motion copied to clipboard
`<AnimatePresence onExitComplete>` called multiple times when there is only one exit
[!NOTE] Motion for Vue issues: Please open in the Motion for Vue repo.
1. Read the FAQs 👇
2. Describe the bug
<AnimatePresence onExitComplete> called multiple times when there is only one exit.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/glhds7
4. Steps to reproduce
Steps to reproduce the behavior:
- Go to the CodeSandbox link
- Click on button "start 1"
- console prints two
done
5. Expected behavior
console prints one done, since the border on the last box only exits once
6. Video or screenshots
7. Environment details Chrome Version 136.0.7103.114