question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toast not disappearing

See original GitHub issue

toast.success("Your passwords do not match", {autoClose: 4000});

Using toast.dismiss(<toast_id) . Even when I leave it default it won’t work.

No errors in console and I tried modifying the package I just can’t figure it out. Anyone else experienced this or have any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
fkhadracommented, Jul 20, 2017

Hello @haydencarlson,

I think I have an idea why your toast it’s not removed.

Your Authorization Component is getting mounted and umounted over and over again, so the <ToastContainer/> will be unmounted as well. When the ToastContainer is umounted, all the related events are unbound.

Move the ToastContainer at the root of your application to solve the issue.

2reactions
ghazale-javahericommented, May 23, 2022

same here, it doesn’t disappear even if put the ToastContainer in the root of application

Read more comments on GitHub >

github_iconTop Results From Across the Web

Persistent Toast Message: Toast won't disappear after execution
A Toast message can become stuck if you call it from a Service thread and that thread completes it's work before Toast is...
Read more >
Toast message take very long time to disappear (Solved)
Toast messages on screen taking about 2 minutes to disappear in some MI phones.Its just because a setting you change accidentally.
Read more >
Toast message doesn't disappear - OnePlus Community
My Profile Toast message doesn't disappear Title: Toast message doesn' Actual behavior: Disappear after a long time. Sometimes toast messages don't disappear. ...
Read more >
Toast messages staying on screen 3-4 mins factory reset, got ...
Try turning Accessibility features off - particularly this one: Settings->Accessibility->Time to take action. If this is set to options other than Default, it ......
Read more >
Toast Notifications not disappearing? : r/AndroidQuestions
I'm rocking a Pixel 3 and the last month I have had toast notifications that absolutely will not stop. Sometimes they clear after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found