Blazored / Toast

A JavaScript free toast library for Blazor and Razor Component applications
https://blazored.github.io/Toast/
MIT License
654 stars 90 forks source link

[Feature Request] Allow viewing currently active toasts #253

Open maurice-freitag opened 6 months ago

maurice-freitag commented 6 months ago

Is your feature request related to a problem? Please describe. We use Toasts primarily for displaying errors. In many cases the same error occurs in rapid succession leading to many duplicate toasts. We would like to display errors with the same error text only once.

Describe the solution you'd like Either one of these: a) Extend BlazoredToasts with a parameter (ShowDuplicates?) so that the container itself can decide whether or not a toast should be shown depending on whether or not the combination of ToastLevel & message is already visible. Checking for equality of the message could prove difficult as they're of type RenderFragment.

b) Make ToastsContainer.ToastList public so consumer of the package can check for equality.

If desired I could make these changes