소스 검색

fix: GraphPanel should be a PureComponent

Johannes Schill 7 년 전
부모
커밋
bcb94cc0ec
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      public/app/plugins/panel/graph2/GraphPanel.tsx

+ 2 - 2
public/app/plugins/panel/graph2/GraphPanel.tsx

@@ -1,6 +1,6 @@
 // Libraries
 import _ from 'lodash';
-import React, { Component } from 'react';
+import React, { PureComponent } from 'react';
 import colors from 'app/core/utils/colors';
 
 // Components & Types
@@ -9,7 +9,7 @@ import { Options } from './types';
 
 interface Props extends PanelProps<Options> {}
 
-export class GraphPanel extends Component<Props> {
+export class GraphPanel extends PureComponent<Props> {
   constructor(props) {
     super(props);
   }