dotnet / aspire-samples

MIT License
644 stars 186 forks source link

AspireShop: Paging backwards always goes to first page #322

Open julioct opened 3 months ago

julioct commented 3 months ago

The AspireShop sample conveniently only features 2 pages of data.

If you add a few more products to the catalog, making 3 pages you'll notice you can never go back from page 3 to page 2:

https://github.com/dotnet/aspire-samples/assets/2374270/2143ad25-0481-4b82-a0d8-0315e408117a

The keyset pagination implemented in this sample is not complete.

Here's one example of how it could be done.