You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,9 +280,6 @@ You might have noticed that you could simply put your function inside `useAnimat
280
280
281
281
It is true, however **you should consider using `useListenOnAnimationFrame` with listeners when you want multiple side effects (or callbacks)** for your function on animation frames because of performance implications.
282
282
283
-
<details>
284
-
<summary><b>Explanation</b></summary>
285
-
286
283
Comparing
287
284
288
285
```tsx
@@ -348,6 +345,3 @@ useEffect(() => {
348
345
```
349
346
350
347
Which will effectively call `video.currentTime` once on each animationFrame and 3 listeners to it.
0 commit comments