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

notification respawn after changing page

Open thomasInes opened this issue 2 years ago • 0 comments

Hi,

using React 18.2.0 and react-notification 1.7.4

I have a form that displays a notification with a 5000ms timeout upon submitting. If I go to another "page" (just another component using react-router-dom) before the timeout expire and show a new notification on the new page, the previous notification reappears + the new one. I Also noticed this happens if I have many notifications. If I change the page before they expire, in that case all these previous notifications will show up again + the new one in the new page.

Is there anything I can do to avoid that, or is a fix needed?

Thanks

thomasInes avatar Feb 02 '23 03:02 thomasInes