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