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

Commit c67f311

Browse files
committed
remove custom LoggedInView::shouldComponentUpdate logic
1 parent 12a9ce1 commit c67f311

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/components/structures/LoggedInView.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,6 @@ class LoggedInView extends React.Component<IProps, IState> {
219219
});
220220
};
221221

222-
// Child components assume that the client peg will not be null, so give them some
223-
// sort of assurance here by only allowing a re-render if the client is truthy.
224-
//
225-
// This is required because `LoggedInView` maintains its own state and if this state
226-
// updates after the client peg has been made null (during logout), then it will
227-
// attempt to re-render and the children will throw errors.
228-
shouldComponentUpdate() {
229-
return Boolean(MatrixClientPeg.get());
230-
}
231-
232222
canResetTimelineInRoom = (roomId) => {
233223
if (!this._roomView.current) {
234224
return true;

0 commit comments

Comments
 (0)