Skip to content

Commit

Permalink
fix: Fixed warning from React about using getSnapshotBeforeUpdate wit…
Browse files Browse the repository at this point in the history
…hout componentDidUpdate
  • Loading branch information
nathan-knight authored and markmcdowell committed Jul 12, 2022
1 parent a9643a2 commit 5da4fd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/ChartCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ export class ChartCanvas<TXAxis extends number | Date> extends React.Component<
return null;
}

// eslint-disable-next-line @typescript-eslint/no-empty-function
public componentDidUpdate() {}

public getMutableState = () => {
return this.mutableState;
};
Expand Down

0 comments on commit 5da4fd0

Please sign in to comment.