window.addEventListener('touchmove', handleScrollMobile)
return () => window.removeEventListener('touchmove', handleScrollMobile)
function handleScrollMobile() {
if (window.innerHeight + document.documentElement.scrollTop !== document.documentElement.offsetHeight || isFetching) return
setIsFetching(true)
}
this code works fine on desktop chrome mobile view but its not working on my android phone. the code sets 'setIsFetching' to true every time the user reaches the bottom of the page.