Demo code `trpc.infinitePosts.add` on infinitedQuery not working
Doc here: https://trpc.io/docs/useInfiniteQuery#getinfinitedata, I created an my query like this:
Then on my client:
api.post.infinitePosts
, but there is no .add
or .delete
on it, am I miss something or is there any detail doc?useInfiniteQuery | tRPC
- Your procedure needs to accept a cursor input of any type (string, number, etc)
0 Replies