M ZeeshanM
Convex Community17mo ago
8 replies
M Zeeshan

Pagination with preloaded data

My main question is How to preload data with usePaginatedQuery

And i also want to ask... is this possible in Convex :
Cursor-based pagination: allowing me to jump to a specific page using a cursor token
Offset-based pagination...?


current server code :
    const result = await ctx.db
      .query('skills')
      .withSearchIndex('search_type', (q) =>
        q.search('type', args.query!),
      )
      .paginate(args.paginationOpts);
Was this page helpful?