Using getInfiniteData() for infinite scrolling

Can anyone please help me with this? I can't seem to be able to use these helper methods like cancel(), getInfiniteData(), or setInfiniteData().
https://trpc.io/docs/client/react/useInfiniteQuery
  • Your procedure needs to accept a cursor input of any type (string, number, etc) to expose this hook.
Was this page helpful?