Skip to content

Commit

Permalink
fix dependency for useCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-r committed May 19, 2022
1 parent ab88743 commit 638859f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/useWorker/src/useWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const useWorker = <T extends (...fnArgs: any[]) => any>(
const killWorkerController = React.useCallback(() => {
killWorker()
setWorkerStatus(WORKER_STATUS.KILLED)
}, [killWorker])
}, [killWorker, setWorkerStatus])

const workerController = {
status: workerStatus,
Expand Down

0 comments on commit 638859f

Please sign in to comment.