vildantursic
trpc Pagination
Hi,
I haven't had that usecase but I was mostly refering to Tanstack React Query docs, whatever you do with react query you can do with TRPC wrapper.
I would pass query params to trpc route (page, limit) and do logic in trpc route and keep (page and limit) on client.
This might help
https://tanstack.com/query/v4/docs/react/examples/react/pagination
6 replies