asliwinski
asliwinski
TtRPC
Created by asliwinski on 9/4/2023 in #❓-help
Is there a way to alter the query key generated by trpc?
I want to pass a boolean flag (initial) to the backend saying if it's a first call of a given procedure. I don't want trpc to create two separate queries because of this. Is there a way to remove this initial parameter from the generated query key? Or is there perhaps a better way to tell the backend it's the first fetch?
2 replies
TtRPC
Created by asliwinski on 3/17/2023 in #❓-help
Implementation of bi-directional cursor-based pagination
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?
1 replies