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

Fix TextWithTooltip "leaking" tooltip wrappers #5055

Merged
merged 1 commit into from Jul 28, 2020
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jul 28, 2020

The way our Tooltip component works is hugely flawed, it uses two expensive operations and in one of its mode is very happy to litter loads of Tooltip wrappers into the DOM.

Fixes element-hq/element-web#14700
Alleviates / Fixes element-hq/element-web#14707

This PR moves to only mounting the Tooltip component when it will be shown like every other area we use it in the app.
Ideally we'd make a much smarter Tooltip component but that's outside of scope for these issues.

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested a review from a team July 28, 2020 09:15
@t3chguy t3chguy merged commit 0ee30a0 into develop Jul 28, 2020
@t3chguy t3chguy deleted the t3chguy/fix/14700 branch July 28, 2020 09:40
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

Successfully merging this pull request may close these issues.

Tooltips account for about 1/5th of the first app render We're leaking mx_Tooltip_wrappers?
2 participants