Last active
October 18, 2018 06:39
-
-
Save olecksamdr/492b602ccff42a3fa9b68e52dbdd917c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleScroll = ({ target }) => { | |
if (target.scrollTop + target.clientHeight >= target.scrollHeight) { | |
// loadMoreData(); | |
} | |
}; | |
element.addEventListener('scroll', handleScroll) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment