Hey guys i'm trying to get debounce to work with a text search field but I am unable to click and enter text into the field. I am able to enter text into the field and search when removing debounce from the constructor.
Heres where I am using debounce.
constructor() {
this.myDebouncer = debounce(this.myDebouncer.bind(this), 1000);
state = {
value: '',
}
}
myDebouncer(event){
this.setState({
value: event.target.value
)}
}
render(){
onChange={this.props.myDebouncer.bind(this)}
}
Any ideas where I am going wrong? Thanks