Skip to content

Commit

Permalink
[@mantine/hooks] use-timeout: remove autoInvoke from effect dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Sep 29, 2023
1 parent 9a437d2 commit 2809375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mantine-hooks/src/use-timeout/use-timeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function useTimeout(
}, delay);
}
},
[callback, delay],
[callback, delay]
);

const clear = useCallback(() => {
Expand All @@ -32,7 +32,7 @@ export function useTimeout(
}

return clear;
}, [clear, options.autoInvoke, start]);
}, [clear, start]);

return { start, clear };
}

0 comments on commit 2809375

Please sign in to comment.