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

RemoveAllListeners or some sort of cleanup method #808

Open
Towerful opened this issue Jan 14, 2025 · 0 comments
Open

RemoveAllListeners or some sort of cleanup method #808

Towerful opened this issue Jan 14, 2025 · 0 comments

Comments

@Towerful
Copy link

Hello,
I am looking for a way to clean up all cookie change listeners.
currently I am doing:

    cookieJar['changeListeners'] = []

But, obviously, this is just a TypeScript escape hatch and shouldn't be relied upon.
Having a way to clean up all handlers so that objects can be garbage collected would be appreciated!

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