We use it in our project and there are some cases when we want to keep this notification on the screen forever. To do so we specify weird timeouts like 99999999.
Looking through the repo I found this discussion https://github.com/emmanuelsw/notiwind/discussions/12 and I totally agree that -1 makes a lot of sense to use as "infinite timeout" argument.
In this PR I've added INFINITE_TIMEOUT const, updated readme and updated the example page.
I'm not sure if I should commit dist files too, please let me know if I should. Also let me know if you have better idea on how to implement it.
hey @emmanuelsw, Thanks for the library!
We use it in our project and there are some cases when we want to keep this notification on the screen forever. To do so we specify weird timeouts like
99999999
. Looking through the repo I found this discussion https://github.com/emmanuelsw/notiwind/discussions/12 and I totally agree that-1
makes a lot of sense to use as "infinite timeout" argument.In this PR I've added
INFINITE_TIMEOUT
const, updated readme and updated the example page.I'm not sure if I should commit dist files too, please let me know if I should. Also let me know if you have better idea on how to implement it.
Thanks!