Support multiple <Toaster> elements
See original GitHub issueThis might be outside of the scope for this project, but the ability to have multiple <Toaster>
elements on a page (where toast()
calls could have a ToasterID
passed in) would be pretty cool and add a lot flexibility.
Example:
toast('This appears as a toast relative to the <div> parent', relativeToasterId)
toast('This appears as a normal toast')
...
return (
<>
<div>
<Toaster id={relativeToasterId} />
</div>
<Toaster />
</>
)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to Show multiple toasts in various positions in Angular ...
Checkout and learn about Show multiple toasts in various positions in Angular Toast component of Syncfusion Essential JS 2, and more details.
Read more >Toaster Troubleshooting - iFixit
Toasting lever won't stay down. When you push down the toasting lever, it pops right back up again, or you have to push...
Read more >Stan Harrison: Toaster repair project uncovers elements of ...
A quick look inside the two toaster slots revealed the problem. The middle heating element wasn't glowing. Why repair a toaster?
Read more >Why Your Toaster Will Eventually Fail You | Wirecutter
To help us determine exactly why slot toasters aren't what they used to ... Vintage toasters' heating elements were often made of Nichrome ......
Read more >How to Repair a Toaster - How to Repair Small Appliances
In many homes, toasters malfunction more than any other small appliance. ... To repair or replace many internal parts, including the heating elements, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/timolins/react-hot-toast/pull/159 ☝️☝️☝️
This PR, if merged, essentially works like this:
This way, only that Toaster will be able to receive
toast
s to-and-from the string"unique-id-here"
.Hi @mrmiguu! Great suggestion - considered this for v2, but decided not to do it atm.
Let’s use this issue to see how the demand is. 👍