Closed LKay closed 7 years ago
Hey @LKay ,
Good spot. Will check on how to solve this soon.
Hey @LKay ,
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.
Hey @LKay
I'm closing this one as I have added tests which are confirming that no additional notifications are being added.
thanks!
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.