Skip to content

Commit

Permalink
chore: reflect code review
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 27, 2023
1 parent f0cb717 commit a81f3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/test-utils/src/ThrowError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useTimeout = (fn: () => void, ms: number) => {
}, [fn])

useEffect(() => {
const id = setTimeout(() => fnRef.current(), ms)
const id = setTimeout(fnRef.current, ms)
return () => clearTimeout(id)
}, [ms])
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useTimeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const useTimeout = (fn: () => void, ms: number) => {
}, [fn])

useEffect(() => {
const id = setTimeout(() => fnRef.current(), ms)
const id = setTimeout(fnRef.current, ms)
return () => clearTimeout(id)
}, [ms])
}

0 comments on commit a81f3f3

Please sign in to comment.