Skip to content

Commit

Permalink
Merge pull request #55 from mbti-nf-team/fix/useThrottleCallback-type
Browse files Browse the repository at this point in the history
fix(@nf-team/react): useThrottleCallback dependencyList type 에러 수정
  • Loading branch information
saseungmin authored Oct 28, 2023
2 parents 3d823c4 + 0445800 commit 1daa36a
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 1daa36a

Please sign in to comment.