motion icon indicating copy to clipboard operation
motion copied to clipboard

`<AnimatePresence onExitComplete>` called multiple times when there is only one exit

Open hgl opened this issue 8 months ago • 0 comments

[!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:

  1. Go to the CodeSandbox link
  2. Click on button "start 1"
  3. 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

hgl avatar May 27 '25 13:05 hgl