Skip to content

Commit 8b92544

Browse files
committed
fix(docs): move hook comparison out from details
1 parent 8f9bf5d commit 8b92544

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ You might have noticed that you could simply put your function inside `useAnimat
280280

281281
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.
282282

283-
<details>
284-
<summary><b>Explanation</b></summary>
285-
286283
Comparing
287284

288285
```tsx
@@ -348,6 +345,3 @@ useEffect(() => {
348345
```
349346

350347
Which will effectively call `video.currentTime` once on each animationFrame and 3 listeners to it.
351-
352-
</details>
353-

0 commit comments

Comments
 (0)