react-notifications icon indicating copy to clipboard operation
react-notifications copied to clipboard

How to prevent duplicate notifications

Open dharmesh-khandelwal opened this issue 8 years ago • 4 comments

@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 avatar Aug 26 '16 05:08 dharmesh-khandelwal

@minhtranite Is there any way to prevent duplicate notifications?

dharmesh-khandelwal avatar Nov 13 '16 12:11 dharmesh-khandelwal

@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.

ashishd751 avatar Feb 20 '17 10:02 ashishd751

Use a debounce function

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

shellandbull avatar Oct 26 '18 14:10 shellandbull

Use a debounce function

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

How to use debounce in this package?

udgeetPanamax avatar Oct 11 '22 12:10 udgeetPanamax