Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Vladimir-Novick/5afe0aeea0c58840057653b5c6df1414 to your computer and use it in GitHub Desktop.
Save Vladimir-Novick/5afe0aeea0c58840057653b5c6df1414 to your computer and use it in GitHub Desktop.
The full solution for the issue of the page reloading will be:
private renderButtons() {
return <div className="buttonDiv">
<button type="button" className="btn btn-default" onClick={this.dataRefrech}>Refresh</button>
<button type="button" className="btn btn-default btn-right" onClick={this.handleClick}>Remove From Queue</button>
</div>;
}
dataRefrech(e:any) {
e.preventDefault();
var startDateIndex = new Date().getUTCMilliseconds();
this.props.requestQueItems(startDateIndex);
this.updateDimensions();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment