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

How to prevent duplicate notifications #11

Open
dharmesh-khandelwal opened this issue Aug 26, 2016 · 4 comments
Open

How to prevent duplicate notifications #11

dharmesh-khandelwal opened this issue Aug 26, 2016 · 4 comments

Comments

@dharmesh-khandelwal
Copy link

@vn38minhtran
I am using react-notification in form validation to show an error message e.g. "Invalid email". The issue is, if a person keeps on clicking on the submit button, the notification keeps on popping up. Is there a way to prevent duplicate notification from showing up? Thanks.

@dharmesh-khandelwal
Copy link
Author

@minhtranite Is there any way to prevent duplicate notifications?

@ashishd751
Copy link

@minhtranite Can you please provide a solution to this ?
I am using this module to display the error notifications in case of ajax call failures...however when i make multiple calls, multiple notifications pop-up.
Can you provide a way to programatically remove notifications ? Perhaps an implementation of remove() method ?
Please respond ASAP.

@shellandbull
Copy link

shellandbull commented Oct 26, 2018

Use a debounce function

[edit] like this one :) https://gist.github.com/nmsdvid/8807205

@udgeetPanamax
Copy link

Use a debounce function

[edit] like this one :) https://gist.github.com/nmsdvid/8807205

How to use debounce in this package?

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

4 participants