Skip to content

fix: fix memory leak caused when disconnecting floating-ui #12107

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented May 7, 2025

Related Issue: #10648

Summary

Addresses a memory leak where floating-ui cleanup was not invoked when the component had missing elements. Tear down should always occur if it was previously registered, regardless of component state.

Our test environment doesn't cover memory profiling, so no tests were added.

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label May 7, 2025
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label May 7, 2025
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👍 nice catch.

Copy link
Contributor

@aPreciado88 aPreciado88 left a comment

Choose a reason for hiding this comment

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

🚀

@jcfranco jcfranco merged commit eda7d13 into dev May 7, 2025
17 checks passed
@jcfranco jcfranco deleted the jcfranco/10648-fix-floating-ui-memory-leak branch May 7, 2025 18:11
benelan pushed a commit that referenced this pull request May 14, 2025
**Related Issue:** #10648 

## Summary

Addresses a memory leak where floating-ui cleanup was not invoked when
the component had missing elements. Tear down should always occur if it
was previously registered, regardless of component state.

Our test environment doesn't cover memory profiling, so no tests were
added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants