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

dispose event #413

Open
amir-arad opened this issue Jun 20, 2022 · 1 comment
Open

dispose event #413

amir-arad opened this issue Jun 20, 2022 · 1 comment

Comments

@amir-arad
Copy link

Hi
Is it possible to get an event when a folder is disposed?
That will help me to easily clean up any state listeners designed to update that folder and its content

@FractalHQ
Copy link

This would be handy!

You could add a mutation observer to watch the folder element and check if it's been destroyed.

You could also create a custom event with something like the Subject in rxjs and dispatch your own event whenever you call dispose.

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

2 participants