Skip to content

notification respawn after changing page #65

@thomasInes

Description

@thomasInes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions