From 7f5aebf49cbf00b2253b81aa4e5238e2cb955fd4 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 26 Jan 2024 18:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=94=80debounce=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/debounce.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index 27310c7..3bc2532 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -6,7 +6,7 @@ export interface DebouncedFunction any> { export function debounce) => any>( fn: F, - waitMs = 250 + waitMs = 250, ): DebouncedFunction { let timeoutId: ReturnType | undefined; @@ -20,7 +20,7 @@ export function debounce) => any>( }; if (timeoutId !== undefined) { - console.debug('debounce clear timeout', fn); + // console.debug('debounce clear timeout', fn); clearTimeout(timeoutId); }