1 min readJun 15, 2019
Really nice article! You just missed one point. You still need to test if the user has scrolled already to the top, before applying your logic. Otherwise the loading is triggered even if you just want to scroll back to the top.