With regards of #40 , I played around a bit with the source code and found a possible solution for the problem.
Basically I made sure that state.notifications can't hold more notification than the value of props.maxNotifications.
Let me know if this is good enough for merge, or if there is anything else left to be added here.
With regards of #40 , I played around a bit with the source code and found a possible solution for the problem. Basically I made sure that state.notifications can't hold more notification than the value of props.maxNotifications.
Let me know if this is good enough for merge, or if there is anything else left to be added here.