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

feat: Implement Eventemitter#removeAllListener. #1762

Merged

Conversation

antondalgren
Copy link
Contributor

@antondalgren antondalgren commented Dec 14, 2022

Description

Make it possible to remove all listeners for the sign client. Currently it is only possible to remove one listener at a time by passing the event it listens on and the callback function.

Resolves #1761

How Has This Been Tested?

Locally in my own app, it works smoothly.

Due Dilligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

Make it possible to remove all listeners for the sign client. Currently it is only possible to remove one listener at a time by passing the event it listens on and the callback function.
@antondalgren
Copy link
Contributor Author

@0xasimetriq Could you pop an eye on this please? :)

@antondalgren antondalgren requested review from bkrem and ganchoradkov and removed request for bkrem and ganchoradkov December 19, 2022 14:46
@antondalgren
Copy link
Contributor Author

antondalgren commented Dec 19, 2022

Sorry for the spam 😅 ☝️

@antondalgren antondalgren requested review from ganchoradkov and removed request for bkrem December 20, 2022 08:30
@antondalgren
Copy link
Contributor Author

Can we try and get this into a release this week? :)

@ganchoradkov ganchoradkov merged commit 2d80e19 into WalletConnect:v2.0 Dec 20, 2022
@bkrem
Copy link
Member

bkrem commented Dec 22, 2022

Can we try and get this into a release this week? :)

@antondalgren shipped as part of https://github.com/WalletConnect/walletconnect-monorepo/releases/tag/2.1.5 🎁

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

Successfully merging this pull request may close these issues.

Implement removeAllListeners
3 participants