wip: panel-header: Change DashboardPanel to a PureComponent to avoid unwanted rerenders

pull/13984/head
Johannes Schill 7 years ago
parent 5375ce5ffd
commit 79da3dc9f6
  1. 4
      public/app/features/dashboard/dashgrid/DashboardPanel.tsx

@ -1,4 +1,4 @@
import React from 'react';
import React, { PureComponent } from 'react';
import config from 'app/core/config';
import { PanelModel } from '../panel_model';
import { DashboardModel } from '../dashboard_model';
@ -20,7 +20,7 @@ export interface State {
pluginExports: PluginExports;
}
export class DashboardPanel extends React.Component<Props, State> {
export class DashboardPanel extends PureComponent<Props, State> {
element: any;
angularPanel: AngularComponent;
pluginInfo: any;

Loading…
Cancel
Save