-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
template: bugThis issue might be a bugThis issue might be a bug
Description
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
What version of react-spring are you using?
9.7.3
What's Wrong?
When exitBeforeEnter is set to true, double-click the button and instantly destroy the dom when it is hidden from reality
https://stackblitz.com/edit/stackblitz-starters-hh9ppv?file=src%2FApp.tsx
To Reproduce
When exitBeforeEnter is set to true, double-click the button and instantly destroy the dom when it is hidden from reality
Expected Behaviour
Is this a bug?
Link to repo
https://stackblitz.com/edit/stackblitz-starters-hh9ppv?file=src%2FApp.tsx
devweissmikhail and branlok
Metadata
Metadata
Assignees
Labels
template: bugThis issue might be a bugThis issue might be a bug
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
branlok commentedon Sep 11, 2024
I had the same issue, So I added another state to check whether it is still animating or not. The bug occurs when you try to change the props while it is still animating.
Even though this is a fix, for me I realize i didn't need exitbeforeenter at all.
someone else had the same issue on #1064 (comment)