minhtranite / react-notifications

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

Clear all notifications #39

Closed octav47 closed 5 years ago

octav47 commented 6 years ago

Clearing all notifications was very nessesary for me, maybe someone needed it too

MostafaRastegar commented 6 years ago

hi add this line to switch after case method: NotificationManager.listNotify = []; you can use with setTimeout for clean listNotify for example: createNotification(type, message) { switch (type) { case 'info': NotificationManager.listNotify = []; NotificationManager.info(message); break; } }

michaeljymsgutierrez commented 5 years ago

Is there a plan for this feature to be merged?