Pagination - page 0 and 1 are returning the same records

Options

Hi,

@Michael Udinski @Chris Coleman

So I was working with Flutterflow trying to integrate queries from xano with infinite scroll and I noticed that page 0 and page 1 are both returning the first batch of records. Is that a bug or a normal behaviour for some reason?
Here is Loom: https://www.loom.com/share/ff7b7b8ed74349bfb5a2ef26a298c34c

Tagged:

Comments

  • Chris Coleman
    Chris Coleman Administrator

    ADMIN

    Options

    Hi, Pawel. Interesting find — the technically correct answer is that you should always be starting at page 1. Maybe we can put in a blocker to not return records on page 0. Thank you!

  • Pawel Magdanski
    Pawel Magdanski Member ✭✭✭
    Options

    Or a choice to start from zero or from one 😁. Since solutions like FlutterFlow are starting pagination from 0. Of course it's possible to just add +1 in Xano to input.

  • Gustavo Santos
    Options

    Hi @Pawel Magdanski , can you load your loom video again or let me know how you structure the pagination in flutterflow?

    I'm struggling with no clues where to start.

    appreciate

    Gustavo