Commit 8f5df801 by Ryan McKinley Committed by kay delaney

Chore: Removes custom debounce utility in favor of lodash/debounce (#17977)

parent 962d4daa
// Based on underscore.js debounce()
export default function debounce(func, wait) {
let timeout;
return function(this: any) {
const context = this;
const args = arguments;
const later = () => {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
......@@ -3,9 +3,7 @@ import _ from 'lodash';
import Plain from 'slate-plain-serializer';
import QueryField from './query_field';
// import debounce from './utils/debounce';
// import {getNextCharacter} from './utils/dom';
import debounce from 'app/features/explore/utils/debounce';
import debounce from 'lodash/debounce';
import { getNextCharacter } from 'app/features/explore/utils/dom';
import { KEYWORDS, functionTokens, operatorTokens, grafanaMacros } from './kusto/kusto';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment