I\'m trying to add debouncing with lodash to a search function, called from an input onChange event. The code below generates a type error \'function is expected\', which I unde
for your case, it should be:
search = _.debounce((e){ let str = e.target.value; this.props.relay.setVariables({ query: str }); }, 500),