emilkowalski / sonner

An opinionated toast component for React.
https://sonner.emilkowal.ski
MIT License
8.37k stars 263 forks source link

Feature Request: Indicate error if `toast()` call did not reach `Toaster` #427

Open feelixe opened 4 months ago

feelixe commented 4 months ago

Describe the feature / bug 📝:

Would be nice with some way to know when calling toast() if it was successful.

The use-case is in for example Astro where the <Toaster> is in a separate island, and rendering order is uncertain on initial load. With some indication that it failed you could retry at an interval.