()
| 76 | if (!el) return; |
| 77 | |
| 78 | const handleScroll = () => { |
| 79 | const { scrollTop, scrollHeight, clientHeight } = el; |
| 80 | setIsScrolledToBottom(scrollTop + clientHeight >= scrollHeight - 10); |
| 81 | }; |
| 82 | |
| 83 | el.addEventListener('scroll', handleScroll); |
| 84 | handleScroll(); |
no outgoing calls
no test coverage detected