fix(ui) - debounce callback
This commit is contained in:
parent
e449d8a6e3
commit
098a067528
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ interface Props {
|
|||
addFilterByKeyAndValue: (key: string, value: string) => void;
|
||||
}
|
||||
function SessionSearchField(props: Props) {
|
||||
const debounceFetchFilterSearch = debounce(props.fetchFilterSearch, 1000)
|
||||
const debounceFetchFilterSearch = React.useCallback(debounce(props.fetchFilterSearch, 1000), []);
|
||||
const [showModal, setShowModal] = useState(false)
|
||||
const [searchQuery, setSearchQuery] = useState('')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue