We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Chrome 100.0.4896.60 When toggling visibility on a <Toast /> component, the 2nd time the component shows it's still using the same timer.
<Toast />
I was expecting the timer to reset each time the Toast is no longer active
Maybe just clear the setTimeout each time the Toast is dismissed
setTimeout
Describe the steps to reproduce the behavior:
timeout
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Detailed description
Chrome 100.0.4896.60
When toggling visibility on a
<Toast />
component, the 2nd time the component shows it's still using the same timer.I was expecting the timer to reset each time the Toast is no longer active
Possible solution
Maybe just clear the
setTimeout
each time the Toast is dismissedSteps to reproduce
Describe the steps to reproduce the behavior:
timeout
prop on a Toast component to 6000Screenshots
react-toast-timeout.mov
The text was updated successfully, but these errors were encountered: