Closed RangarajKaushikSundar closed 8 years ago
@tomchentw The previous pull request helps us avoid the duplicate messages. Kindly approve this pull request since it completes the functionality.
@RangarajKaushikSundar I'd like to invite you to be a collaborator of this project. Are you interested?
@tomchentw I would be happy to.
@RangarajKaushikSundar invited!
The prevent duplicates feature works by checking the previously rendered message with the current message and avoids duplicates. There is a test case which will not pass in the following situation - success('hello') --- followed by --> success('bye') --- followed by--> success('hello'). The last "hello" should not render until the previous "hello" has unmounted.
Now, the code maintains a list of messages that are currently being rendered. This makes sure that aforementioned issue doesn't happen.