Skip to content

[Feature Request] Allow viewing currently active toasts #253

@maurice-freitag

Description

@maurice-freitag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestRequest to add a new featureTriageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions