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.

Limit the waiting queue to 2 toasts

See original GitHub issue

Do you want to request a feature or report a bug? feature

What is the current behavior? When using limit, all pending toasts will be queued. Coming after a while, toasts will start playing from the most recent to the oldest one.

What is the expected behavior? We would like to keep a limit=1 with a queueMax=2 (property not existing at the moment), so that we aren’t spammed by toasts when coming back to the page after a while, especially since old toasts have become irrelevant by now. We want to keep the 2 most recent notifications in the queue, thus the newest toast should remove the second oldest toast from the queue.

Would it be possible to add this new property to a container ? Or maybe add another param to ClearWaitingQueueParams when calling toast.clearWaitingQueue ?

Thank you for considering this feature.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vitorbertoluccicommented, Jan 21, 2022

It would also be interesting to disable the queue completely. In my case I would prefer that a notification sent while the limit is full got lost.

2reactions
fkhadracommented, Aug 31, 2021

Hey @AdrienLemaire, I’ll check if this can be implemented without too much hassle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Limit the number of toast displayed | React-Toastify
You may need to clear the waiting queue in some cases. This is really easy to do. ... You can also decide which...
Read more >
How to Reduce Wait Times in Restaurants With Line Busting
Shorter Wait Times = Bigger Revenue​​ The Toast Go 2™ builds on the efficiency of the initial version by processing transactions in 1.6...
Read more >
android - How to prevent Multiple Toast Overlaps
By default the Boast will cancel the previous one, so you don't build up a queue of Toasts waiting to be displayed.
Read more >
Toast | Android Developers
Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other...
Read more >
Toast POS vs Waitwhile Comparison - GetApp
Waitwhile is a waitlist app & queue management system, built to eliminate wait times. Trusted by 10k+ businesses incl. IKEA & Lululemon. Platforms...
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