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

Add event unsubscribe method #98

Closed
luiseel opened this issue Nov 4, 2021 · 0 comments
Closed

Add event unsubscribe method #98

luiseel opened this issue Nov 4, 2021 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@luiseel
Copy link
Contributor

luiseel commented Nov 4, 2021

Add a method to unsubscribe from an event, something like:

const unsubscribe = onAccountAvailable(
  () => console.log('Account available!'));
unsubscribe(); // remove the last callback
@luiseel luiseel added the feature New feature or request label Nov 4, 2021
@luiseel luiseel added this to the 0.8.0 milestone Nov 4, 2021
@luiseel luiseel self-assigned this Nov 4, 2021
@luiseel luiseel modified the milestones: 0.8.0, 0.9.0 Nov 5, 2021
luiseel added a commit that referenced this issue Feb 2, 2022
feat: Add event unsubscribe method #98
@luiseel luiseel removed this from the 0.9.0 milestone Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants