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

Find attributes and components to drop when rendering any lazy nodes #1376

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Aug 18, 2023

Currently the ScopeState will only drop elements that are render!ed, not any nodes that are created through the IntoDynNode or IntoTemplate trait. This PR fixes the two trait impls to drop any attributes and components that were rendered by the VirtualDom

Fixes #1365 ? At least the no-native-core version

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Aug 18, 2023
@ealmloff ealmloff merged commit 6662892 into master Sep 5, 2023
10 checks passed
@ealmloff ealmloff deleted the core-listeners-leak branch September 5, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Pontential memory leak, event handlers not being properly dropped
2 participants