Paginated queries #10
Replies: 3 comments 4 replies
-
Do you have any examples of endpoints to use and what the actual API should be? If you have real world case usage, that would also help to boil down the needed API. This is probably worth adding at some point but when I searched on open source projects and some close sourced, I didn't find anybody using it. |
Beta Was this translation helpful? Give feedback.
-
Sorry to bump this thread @posva , but I'm looking into using Pinia Colada in a new project. Is there an equivalent to tanstack's The endpoints return something like this:
The query's key uses a query param from the page (eg /pages/todos/[id].vue) Is the recommended way of doing this writing the logic in the shared query? Track the current page with a ref and then expose a function to increment it? I was thinking about what if the page changes, the "page" ref probably won't be reset to 0 even if the key is different because of the query param. Ideas? |
Beta Was this translation helpful? Give feedback.
-
I opened #178 to track this. I need feedback on use cases to design a proper |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Add query handlers for loading paginated / "infinite" data
Beta Was this translation helpful? Give feedback.
All reactions