teodosii / react-notifications-component

Delightful and highly customisable React Component to notify your users
https://teodosii.github.io/react-notifications-component/
MIT License
1.27k stars 73 forks source link

We need an API (Prop) for automatically clearing the notification on duration end. #81

Closed ivanjeremic closed 4 years ago

ivanjeremic commented 4 years ago

Like said in the title We need an API (Prop) for automatically clearing the notification on duration end. Is there some helpful hook for doing this for now?

Ps. I see lots of Class Components used in the sample and this library. (Classes are out). Hooks are where the focus should be.

teodosii commented 4 years ago

Classes are clearly not out, I don't know who told you that, he clearly informed you wrong.

Also your question doesn't make much sense, do you want to subscribe to notification's removal or is there some bug you're speaking about? Notifications are cleared automatically at the end. For subscribing, there is onNotificationRemoval