erquhartE
Convex Community2y ago
12 replies
erquhart

Paginated query not caching

I have a paginated query with very simplistic args, and it doesn't cache, even in back to back requests.

The one change I see in the args is that the
id
in
paginationOpts
is incrementing each time I call the query, and I'm guessing that difference in args is why the query won't cache.

Steps I'm taking:

- navigating to a view in a react native app
- the paginated query is called on load (first page only)
- navigate back to previous view
- the view with the query unmounts
- navigate forward to the view with the query
- query response is not cached, and paginationOpts.id is incremented by 1 compared to the last call
Was this page helpful?