Infinite scroll & pagination not working

Resolved

Hello,

I have a custom API endpoint for retrieving the user's latest messages. Requesting page=1 will send back the 20 latest messages, page=2 the following 20, etc.

I have set up a ListView in Flutterflow following the guidelines listed here: https://community.flutterflow.io/widgets-and-design

I basically enabled infinite scroll in the backend query settings and set the "page" API parameter using the "Pagination - Next Page Number".

But I've noticed that it sends all the API queries at page load instead of waiting for a scroll to the bottom of the listview.

For example, my test user has 30 messages, and at page load I can see 3 API calls (for page=0,1 and 2), which defeats the purpose of pagination and infinite scroll.

Does anybody see why this is happening and how to fix it?

6
11 replies