Extend PureComponent to avoid unnecessary renders

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-28 15:11:31 +02:00
parent 91e65534fa
commit 7c4e3efbff
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ interface IState {
} }
@replaceableComponent("views.voip.VideoFeed") @replaceableComponent("views.voip.VideoFeed")
export default class VideoFeed extends React.Component<IProps, IState> { export default class VideoFeed extends React.PureComponent<IProps, IState> {
private element: HTMLVideoElement; private element: HTMLVideoElement;
constructor(props: IProps) { constructor(props: IProps) {