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

Updating loading toast is dismissed instantly #35

Closed
devgauravjatt opened this issue Dec 30, 2023 · 2 comments · Fixed by #45
Closed

Updating loading toast is dismissed instantly #35

devgauravjatt opened this issue Dec 30, 2023 · 2 comments · Fixed by #45
Labels
bug Something isn't working

Comments

@devgauravjatt
Copy link

toast.loading('Loading...')

How to Stop this toast

@wobsoriano
Copy link
Owner

You will need to update the toast:

const id = toast.loading('Please wait...')

setTimeout(() => {
	toast.success('Success!', { id })
}, 3000)

However, during testing, I also encountered this bug - - emilkowalski/sonner#201

@wobsoriano wobsoriano added the bug Something isn't working label Dec 30, 2023
@wobsoriano wobsoriano changed the title 😔😔😔😔 Updating loading toast is dismissed instantly Dec 30, 2023
@devgauravjatt
Copy link
Author

Thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants