I have a range UI component. A user can drag the MIN/MAX range UI component and the callback might be called a bunch of time in one second. However, each change will involve remote API call.
Is there any best practice to improve this? Thanks
handlePingRange(data){
this.props.updateFilter("minPing", data[0])
this.props.updateFilter("maxPing", data[1])
}
<div className="form-group col-md-4">
<Range allowCross={false} value={this.state.pingRangeValues} step={5} className="form-control-range" onChange={this.handlePingRange.bind(this)} />
</div>