Debounce autosuggestions (#3836)

* Debounce autosuggestions

* Remove duplicate import
th-downstream
Eugen Rochko 7 years ago committed by GitHub
parent 5fcbc71c35
commit 4845069692

@ -74,9 +74,9 @@ class ComposeForm extends ImmutablePureComponent {
this.props.onClearSuggestions();
}
onSuggestionsFetchRequested = (token) => {
onSuggestionsFetchRequested = debounce((token) => {
this.props.onFetchSuggestions(token);
}
}, 500, { trailing: true })
onSuggestionSelected = (tokenStart, token, value) => {
this._restoreCaret = null;

Loading…
Cancel
Save