mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
add context for roomsublist rendering
This commit is contained in:
parent
327983672e
commit
daaaa3da95
1 changed files with 2 additions and 0 deletions
|
@ -527,6 +527,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
|||
: 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 <RoomSublist
|
||||
key={`sublist-${orderedTagId}`}
|
||||
tagId={orderedTagId}
|
||||
|
|
Loading…
Reference in a new issue