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'm using the transition prop in a Dialog component to animate when it's open or closed, however I want to reset some state after the dialog is fully closed.
I used to be able to do this using the afterLeave callback from the Transition component but I can't find a way to do the equivalent using props. Right now my workaround is to reset my state using a timeout but it's not ideal.
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
-
I'm using the
transition
prop in aDialog
component to animate when it's open or closed, however I want to reset some state after the dialog is fully closed.I used to be able to do this using the
afterLeave
callback from theTransition
component but I can't find a way to do the equivalent using props. Right now my workaround is to reset my state using a timeout but it's not ideal.Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions