In this recipe, we'll add infinite scroll to our application. Superglue doesn't have an infinite scroll component, but it has tools that make it easy to work with React's ecosystem.
Lets begin by adding react-infinite-scroll-hook
yarn add react-infinite-scroll-hook
And continue off from our recipe.
!!! tip We'll use the beforeSave callback to modify the payload before superglue saves it to the store. This callback is an option for both visit and remote functions. See the for more details.