From daaaa3da95889ed7c2bb4863943718411e7e3dbd Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Fri, 16 Apr 2021 10:26:29 +0100 Subject: [PATCH] add context for roomsublist rendering --- src/components/views/rooms/RoomList.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 26549cf193..f4cf87226c 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -527,6 +527,8 @@ export default class RoomList extends React.PureComponent { : this.tagAesthetics[orderedTagId]; if (!aesthetics) throw new Error(`Tag ${orderedTagId} does not have aesthetics`); + // The cost of mounting/unmounting this component offsets the cost + // of keeping it in the DOM and hiding it when it is not required return