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

fix: toast not displaying when Toaster.duration is set to Infinity #373

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

atsixian
Copy link
Contributor

Issue 😱:

Closes #340

What has been done βœ…:

setTimeout(, Infinity) behaves as if the delay is 0.
As a result, the toast would be closed immediately, giving the appearance that it was never rendered.

To solve this, we skip setting the timer for closing the toast.

Screenshots/Videos πŸŽ₯:

N/A

Copy link

vercel bot commented Mar 18, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
sonner βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Mar 19, 2024 3:39am

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

Successfully merging this pull request may close these issues.

Toast not displaying when toastOptions.duration (and duration) on Toaster set to Infinity
2 participants