@buildsghost @dan_abramov I see a lot of this as well: event handlers not fully encapsulating a user action. A data fetching example:
useEffect(() => {
if (wizardStep === 'foo') fetchFooThings();
}
When the data could have been fetched when the user took the "go to foo step" action.
@pjately @dan_abramov Not sure if you have control over the endpoint you're consuming, but sending down pagination meta details is helpful: your `handleScrolledToBottom` could do something like `fetchData({ page: data.meta.nextPage })` (with `data` being set after an earlier response).