()
| 12 | useEffect(() => { |
| 13 | let frame = 0; |
| 14 | const read = () => { |
| 15 | frame = 0; |
| 16 | setPast(window.scrollY >= window.innerHeight); |
| 17 | }; |
| 18 | const onScroll = () => { |
| 19 | if (!frame) { |
| 20 | frame = window.requestAnimationFrame(read); |
no outgoing calls
no test coverage detected