You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
add context for roomsublist rendering
This commit is contained in:
@@ -527,6 +527,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
|||||||
: this.tagAesthetics[orderedTagId];
|
: this.tagAesthetics[orderedTagId];
|
||||||
if (!aesthetics) throw new Error(`Tag ${orderedTagId} does not have aesthetics`);
|
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
|
return <RoomSublist
|
||||||
key={`sublist-${orderedTagId}`}
|
key={`sublist-${orderedTagId}`}
|
||||||
tagId={orderedTagId}
|
tagId={orderedTagId}
|
||||||
|
|||||||
Reference in New Issue
Block a user