()
| 58 | |
| 59 | useEffect(() => { |
| 60 | function onScroll() { |
| 61 | setScroll(window.scrollY > 10) |
| 62 | } |
| 63 | window.addEventListener('scroll', onScroll) |
| 64 | return () => { |
| 65 | window.removeEventListener('scroll', onScroll) |
nothing calls this directly
no outgoing calls
no test coverage detected