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

Clear behaviours on tear down #14

Open
domneedham opened this issue Apr 30, 2024 · 1 comment
Open

Clear behaviours on tear down #14

domneedham opened this issue Apr 30, 2024 · 1 comment

Comments

@domneedham
Copy link

If a visual element has any behaviours on it, it is not getting cleared. This can lead to the entire page and view models etc not being garbage collected.

Adding the following makes it work for me in tear down.

visualElement.Behaviors.Clear();

Happy to discuss further.

@AdamEssenmacher
Copy link
Owner

Agreed. PR or I'll try to get to it when I can.

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