There's a package called Intersection observer that you may be able to use for just this. Just put it in the bottom of a scrollable area and listen to the change event to trigger loading more from your API. There should be some info on the package overview.