tRPCttRPC
Powered by
ezalorsaraE
tRPC•3y ago•
3 replies
ezalorsara

pagination - Offset Method

Hi trpc has pagination example but only using cursor https://trpc.io/docs/reactjs/useinfinitequery

Is there an example there that use offset pagination
https://www.prisma.io/docs/concepts/components/prisma-client/pagination

Or is it not supported by trpc useInfiniteQuery.

Thank you
useInfiniteQuery | tRPC
- Your procedure needs to accept a cursor input of any type (string, number, etc) to expose this hook.
useInfiniteQuery | tRPC
Prisma
Pagination (Reference)
Prisma Client supports both offset pagination and cursor-based pagination. Learn more about the pros and cons of different pagination approaches and how to implement them.
Pagination (Reference)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

trpc Pagination
<DxD/><<DxD/> / ❓-help
3y ago
Pagination Query
NightNNight / ❓-help
3y ago
infinite scroll pagination
trashTtrash / ❓-help
3y ago