From 044580006b7cff362e5a40d4f4eca761307c1b5d Mon Sep 17 00:00:00 2001 From: saseungmin Date: Sat, 28 Oct 2023 22:56:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(@nf-team/react):=20useThrottleCallback=20de?= =?UTF-8?q?pendencyList=20type=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/curly-vans-clean.md | 5 +++++ packages/react/src/hooks/useThrottleCallback.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/curly-vans-clean.md diff --git a/.changeset/curly-vans-clean.md b/.changeset/curly-vans-clean.md new file mode 100644 index 00000000..e37cd1e5 --- /dev/null +++ b/.changeset/curly-vans-clean.md @@ -0,0 +1,5 @@ +--- +"@nf-team/react": patch +--- + +fix(@nf-team/react): useThrottleCallback dependencyList type 에러 수정 diff --git a/packages/react/src/hooks/useThrottleCallback.ts b/packages/react/src/hooks/useThrottleCallback.ts index 61cec326..f8184ba8 100644 --- a/packages/react/src/hooks/useThrottleCallback.ts +++ b/packages/react/src/hooks/useThrottleCallback.ts @@ -2,7 +2,7 @@ import { DependencyList, useCallback, useRef } from 'react'; function useThrottleCallback( callback: (...args: U) => void, - dependencyList: DependencyList[], + dependencyList: DependencyList, delay: number, ) { const timer = useRef | null>(null);