You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, appreciate for a great work. However I encountered a problem.
When the fetched data length from backend is less than the page size, for example data length for page 1 is 5 and page size is 25,
Widget loads the same page again.
Here is the code block I used for achieving the pagination.
Hey @onursahindur! I suspect it is because of the page calculation you are doing. Try this
var page = (offset /25).ceil() +1;
Also, make sure your API returns an empty list when you fetch the next page which has no data (in this above example, query with page = 2 should return empty list). Because returning an empty list to pageFetch stops the pagination.
First of all, appreciate for a great work. However I encountered a problem.
When the fetched data length from backend is less than the page size, for example data length for page 1 is 5 and page size is 25,
Widget loads the same page again.
Here is the code block I used for achieving the pagination.
And the page pageFetch method is:
The text was updated successfully, but these errors were encountered: