()
| 8 | |
| 9 | useEffect(() => { |
| 10 | const setScollPositionCallback = () => setScrollPosition(window.scrollY) |
| 11 | |
| 12 | if (typeof window !== 'undefined') { |
| 13 | window.addEventListener('scroll', setScollPositionCallback) |
nothing calls this directly
no outgoing calls
no test coverage detected