Hacker News new | ask | show | jobs
by zackbloom 4854 days ago
{hideAfter: 10} is default, meaning it will hide in 10 seconds without intervention.
1 comments

That's a good default for expiration, but I always expect to be able to dismiss notifications early to get them out the way.

It definitely makes sense to hide the dismissal button when there are interactions prompted that would get rid of it (Retry/Cancel), but the default case is a plain text message to the user.

By the way, I like it, thanks for putting it out there! A more unique name might help me find it for future projects :)