mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-25 14:57:58 -05:00
Because we dynamically insert images into the DB and UI's images state, `page`/`per_page` pagination makes loading the images awkward. Using `offset`/`limit` pagination lets us query for images with an offset equal to the number of images already loaded (which match the query parameters). The result is that we always get the correct next page of images when loading more.