File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * The delay in milliseconds before submitting a search query.
3+ *
4+ * This constant is used to implement a debounce mechanism for search inputs.
5+ * It helps reduce the number of API calls made while the user is still typing,
6+ * by waiting for a brief pause in input before submitting the query.
7+ *
8+ * @constant
9+ * @type {number }
10+ * @default 600
11+ */
12+ export const SUBMIT_DELAY_MS = 600
Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ import {
4646 QueryResult
4747} from '../../../types/global'
4848import { getKeywordWithWildcard } from '../../utils/getKeywordWithWildcard'
49-
50- // Amount of time to delay submission and wait for more input
51- const SUBMIT_DELAY_MS = 600
49+ import { SUBMIT_DELAY_MS } from '../../constants/submitDelay'
5250
5351interface AutoSaveFormikProps {
5452 isLoading : boolean ;
You can’t perform that action at this time.
0 commit comments