Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update a toast message if a toast is already visible #701

Open
sarahmclaughlan opened this issue Aug 7, 2023 · 0 comments
Open

Update a toast message if a toast is already visible #701

sarahmclaughlan opened this issue Aug 7, 2023 · 0 comments

Comments

@sarahmclaughlan
Copy link

Hello

I want to be able to update an already visible toast message/content rather than displaying a new one.
Say I have a list of items, and each item has an Add button. Once i click on the Add button for each item, currently every one will show a toast so if i add 10 items it will show 10 toasts of the same toast. I want to be able to update the first visible toast to say 'Multiple notifications require your attention' instead of it showing the same toast 10 times. Hope this makes sense. I do not want the preventDuplicate though as I need to change the content message instead.

Any ideas? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant