Skip to content
Snippets Groups Projects
Commit 8747315a authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Don't update load and save buttons.

This use of shouldComponentUpdate is wrapping the incorrect use of bind
in the mapStateToProps call.
parent 3c373832
Branches
Tags
No related merge requests found
......@@ -14,6 +14,9 @@ class LoadButton extends React.Component {
'handleClick'
]);
}
shouldComponentUpdate () {
return false;
}
handleChange (e) {
const reader = new FileReader();
reader.onload = () => this.props.loadProject(reader.result);
......
......@@ -14,6 +14,9 @@ class SaveButton extends React.Component {
'handleClick'
]);
}
shouldComponentUpdate () {
return false;
}
handleClick () {
const json = this.props.saveProjectSb3();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment