You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this fragment you remove all notifications that are no longer in the state, which is totally fine.
// Get all active notifications from react-notification-system/// and remove all where uid is not found in the reducer(this.system().state.notifications||[]).forEach(notification=>{if(notificationIds.indexOf(notification.uid)<0){this.system().removeNotification(notification.uid);}});
But here you are looping for each notifications in the redux state even if some are already displayed. You should filter the redux notifications against notification that are already displayed and add only new ones.
I think this was done on purpose considering react-notification-system is ignoring notifications with same id anyways so we do not need to filter here.
uid
Overrides the internal uid. Useful if you are managing your notifications id. Notifications with same uid won't be displayed.
Let me know if you are seeing duplicates being added which shouldn't be the case.
In this fragment you remove all notifications that are no longer in the state, which is totally fine.
But here you are looping for each notifications in the redux state even if some are already displayed. You should filter the redux notifications against notification that are already displayed and add only new ones.
The text was updated successfully, but these errors were encountered: