Is it possible to use useInfiniteQuery hook when continuation token for a query with same parameters changes with time? #6646
Unanswered
rajeshwar904
asked this question in
Q&A
Replies: 1 comment 2 replies
-
sorry, the question is too vague for me to answer properly. What does "data is getting corrupted or some results are duplicated etc." mean? The best thing you can do is show a minimal codesandbox reproduction with your problem |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an API which takes query parameters and continuation token as input and returns the set of results and continuation token which can be used to get next set of results. The query results and continuation token can change when the same query with the same continuation token is performed again.
I am trying to implement infinite scrolling using the useInfiniteQuery hook, but when the query is being refetched the data is getting corrupted or some results are duplicated etc. Is there anything that can be done here?
or is it not recommended to use useInfiniteQuery when it is above scenario?
Beta Was this translation helpful? Give feedback.
All reactions