Skip to content

Conversation

ealmloff
Copy link
Member

This PR removes any global event listeners components use when the component is removed

Depends on DioxusLabs/dioxus#4655
Fixes #123

@ealmloff ealmloff added bug Something isn't working primitives labels Sep 10, 2025
Copy link

Copy link

@snatvb snatvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, thank you for improvements🙏

}

/// Run some cleanup code when the component is unmounted if the effect was run.
fn use_effect_with_cleanup<F: FnMut() -> C + 'static, C: FnOnce() + 'static>(mut effect: F) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add this to the framework or a utils crate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working primitives
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It seems Popover has memory leak
3 participants