Skip to content

Commit 9d010b8

Browse files
committed
fix: remove reliance on accidental behavior
1 parent 2534424 commit 9d010b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ function useAnimationLoop(isRunning, drawFrame) {
16911691
frameId = requestAnimationFrame(tick);
16921692
}
16931693

1694-
tick();
1694+
tick(startTime);
16951695
return () => cancelAnimationFrame(frameId);
16961696
}, [isRunning]);
16971697
}

0 commit comments

Comments
 (0)