Debounce autosuggestions (#3836)
* Debounce autosuggestions * Remove duplicate import
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user