Update interval and timeout hooks

This commit is contained in:
Chalarangelo
2021-09-08 19:24:11 +03:00
parent 5f7d719524
commit 508255cead
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const useTimeout = (callback, delay) => {
}, [callback]);
React.useEffect(() => {
function tick() {
const tick = () => {
savedCallback.current();
}
if (delay !== null) {