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

Add transition callbacks for Toast #6152

Closed
totembe opened this issue Dec 15, 2021 · 2 comments · Fixed by #6674
Closed

Add transition callbacks for Toast #6152

totembe opened this issue Dec 15, 2021 · 2 comments · Fixed by #6674

Comments

@totembe
Copy link

totembe commented Dec 15, 2021

Is your feature request related to a problem? Please describe

After toast animation completion, I want to run some cleaning functions, like removing data from redux state. In my scenaroio this state also controls what toasters would be displayed. So if i remove my data from state, toaster will be closed immediately without animation.

Describe the solution you'd like

onHidden event which is called after transition completed would solve this problem.

Describe alternatives you've considered

No response

Additional context

No response

@kyletsang kyletsang changed the title Feature Add transition callbacks for Toast Dec 15, 2021
@spigelli
Copy link

spigelli commented Mar 7, 2022

@totembe Submitted a pr to try and add this functionality, can you verify this is the behavior you were describing?

@totembe
Copy link
Author

totembe commented Mar 7, 2022

yes

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