minhtranite / react-notifications

Notification component for ReactJS
https://www.npmjs.com/package/react-notifications
287 stars 65 forks source link

How to prevent duplicate notifications #11

Open dharmesh-khandelwal opened 8 years ago

dharmesh-khandelwal commented 8 years ago

@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 commented 8 years ago

@minhtranite Is there any way to prevent duplicate notifications?

ashishd751 commented 7 years ago

@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 commented 6 years ago

Use a debounce function

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

udgeetPanamax commented 2 years ago

Use a debounce function

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

How to use debounce in this package?