TRPC -useInfiniteQuery() refreshes all data when an input is varied, how to use?
So I have a TRPC infiniteQuery:
As an example, for each 3 gathered, I increase the value of page by 1, when
page = 2
, the page does a query, resets the pages content and triggers a repeating loop of queries.
I want to pass a varying value, be it string or number, to the query and be able to continue from the old content. Any help is welcome1 Reply
keepPreviousData: true,
Doesn't work either. Thought that might be it.