Browse Source

[Beta] Fix Defining frameId in useAnimationLoop (#5277)

main
Ahmad Madany 2 years ago
committed by GitHub
parent
commit
1503e6b55c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      beta/src/content/learn/reusing-logic-with-custom-hooks.md

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

@ -1664,6 +1664,7 @@ function useAnimationLoop(isRunning, drawFrame) {
}
const startTime = performance.now();
let frameId = null;
function tick(now) {
const timePassed = now - startTime;

Loading…
Cancel
Save