mirror of https://github.com/vector-im/riot-web
Extend PureComponent to avoid unnecessary renders
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
91e65534fa
commit
7c4e3efbff
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue