Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing event on notification expiry #37

Open
Sojourneer opened this issue Feb 8, 2016 · 0 comments
Open

Missing event on notification expiry #37

Sojourneer opened this issue Feb 8, 2016 · 0 comments

Comments

@Sojourneer
Copy link
Contributor

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant