LouisBarranqueiro / reapop

:postbox: A simple and customizable React notifications system
https://louisbarranqueiro.github.io/reapop
MIT License
1.55k stars 78 forks source link

Promise support for notifications #527

Closed TobiasGrether closed 1 year ago

TobiasGrether commented 1 year ago

Description

Instead of just being able to provide a time in milliseconds after which the notification is completed, it would be great to have support to pass a promise to it.

Explanation / motivation

If you want to use reapop to show for example the status of a file upload or similar, you can't give an exact estimate in ms on when that operation will succeed

Additional information

msanandrea commented 1 year ago

Same opened => https://github.com/LouisBarranqueiro/reapop/issues/526

TobiasGrether commented 1 year ago

See #526 for solution