Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Don't remount main split children on rhs collapse #4197

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Mar 10, 2020

This was super painful to diagnose, because of the tree depth where we end up rendering the children changing, react thinks that they are unrelated and thus remounts from scratch, do not change depth when conditionally rendering children in a component.

Fixes element-hq/element-web#9822

Signed-off-by: Michael Telatynski [email protected]

@t3chguy t3chguy requested a review from a team March 10, 2020 20:11
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

great, lgtm!

@t3chguy t3chguy merged commit f9954a6 into develop Mar 11, 2020
@t3chguy t3chguy deleted the t3chguy/dont_remount_main_split branch April 27, 2020 17:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapsing the right sidebar scrolls to the bottom in a room
2 participants