Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jul 4, 2019
2 parents e1dfd77 + c1b0b40 commit 3227695
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primereact",
"version": "3.1.6-SNAPSHOT",
"version": "3.1.7",
"homepage": "/primereact",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions src/components/chart/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ export class Chart extends Component {
}
}

shouldComponentUpdate(nextProps){
if(nextProps.data === this.props.data) {
return false;
}
return true;
}

componentDidMount() {
this.initChart();
}
Expand Down

0 comments on commit 3227695

Please sign in to comment.