Skip to content

Commit

Permalink
fix(@nf-team/react): useThrottleCallback dependencyList type 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin committed Oct 28, 2023
1 parent 3d823c4 commit 0445800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-vans-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nf-team/react": patch
---

fix(@nf-team/react): useThrottleCallback dependencyList type 에러 수정
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useThrottleCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DependencyList, useCallback, useRef } from 'react';

function useThrottleCallback<U extends never[]>(
callback: (...args: U) => void,
dependencyList: DependencyList[],
dependencyList: DependencyList,
delay: number,
) {
const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
Expand Down

0 comments on commit 0445800

Please sign in to comment.