-
-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications are never removed from dom #50
Comments
@fkhadra I'm using react 15.6.1 are you testing it on 16.0.0? |
@Kepro yes I switched to react 16 and the same for the test. You think that it can cause the issue ? |
React 16 is handling this in a different way... in react 15.x if you return null then you will see react-empty as I showed in screenshot, but my point was that you still have all elements in your object, so after dismiss you don't remove it from there, this is also wasting memory in application, think if you have some system and it's running 24/7 without reloading and you never remove hidden notifications :) I don't look at your code, maybe you have internal limit of max notifications and you clearing that queue |
@Kepro you're right. I clean the "object" when the container is unmounted. |
Thanks, sorry for no PR :) but don't have time now... |
Don't worry :D. Finding a bug is a way to contribute |
@fkhadra i checked your demo |
After every item is disappear then we will see in dom react-empty comment, all dead notifications should be removed also internally
The text was updated successfully, but these errors were encountered: