Extend PureComponent to avoid unnecessary renders
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user