Skip to content

Commit

Permalink
Disable eslint react-hooks/exhaustive-deps rule in QueryEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Aug 29, 2020
1 parent 2e2c3cf commit 69c923a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const QueryEditor: ComponentType<Props> = ({ datasource, onChange, onRunQ
onChange({ ...query, data: data, target: metric.value, type: formatAs.value });

onRunQuery();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data, formatAs, metric]);

const loadMetrics = (searchQuery: string) => {
Expand Down

0 comments on commit 69c923a

Please sign in to comment.