You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It wasn't clear to me from the documentation that the options.closed callback is invoked only when the notification is manually closed.
My usecase is to show a notification (e.g. 'saved successfully', and then when the notification expires to take a navigation action. So I would like to be able to get a callback both on a manual close of the notification and on its expiry and automatic close.
As a temporary kludge, I added a options.onExpires callback which gets called where the notifications are removed from the collection. I put the actual callback invocations on a Meteor.timeout because that seemed like the right timing. I'm sure there is a better way...
The text was updated successfully, but these errors were encountered:
It wasn't clear to me from the documentation that the options.closed callback is invoked only when the notification is manually closed.
My usecase is to show a notification (e.g. 'saved successfully', and then when the notification expires to take a navigation action. So I would like to be able to get a callback both on a manual close of the notification and on its expiry and automatic close.
As a temporary kludge, I added a options.onExpires callback which gets called where the notifications are removed from the collection. I put the actual callback invocations on a Meteor.timeout because that seemed like the right timing. I'm sure there is a better way...
The text was updated successfully, but these errors were encountered: