[Feature Request] Allow viewing currently active toasts
maurice-freitag opened this issue · 0 comments
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