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

why only one NotificationContainer in the app?

Open Akashamba opened this issue 4 years ago • 2 comments

This should be explained in the documentation.

Akashamba avatar Dec 26 '20 05:12 Akashamba

It is also unclear to me whether or not it is okay to import and use NotificationsManager in several locations within the app, or if it always has to be in the same component that has the NotificationContainer. We've been seeing issues with notifications overlapping each other.

dcorliss-Novetta avatar Nov 29 '21 19:11 dcorliss-Novetta

I haven't tried this use case, I also took over the project from another dev, so my answer could be completely off base.

I would expect that without a position to define, notification containers overlap which results in the behavior @dcorliss-Novetta is seeing. If you have only one notification container, then it can see what other notifications are live to not overlap.

tjrexer avatar Dec 11 '21 19:12 tjrexer