T
tRPC

Implementation of bi-directional cursor-based pagination

Implementation of bi-directional cursor-based pagination

Aasliwinski3/17/2023
I'm looking at the example for useInfiniteQuery and I'm trying to make it bi-directional. I know I need to pass getPreviousPageParam that returns the second cursor, but I don't see any obvious way to pass the direction information to the procedure. What would be the recommended way to do it?

Looking for more? Join the community!

T
tRPC

Implementation of bi-directional cursor-based pagination

Join Server