Extend PureComponent to avoid unnecessary renders

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

View file

@ -47,7 +47,7 @@ interface IState {
}
@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;
constructor(props: IProps) {