useInfiniteQuery returns unmodified data after manual refetch triggered
Hello, I am trying to use
I am using
The issue I am facing is that the useInfiniteQuery does not modify its returns on manual refetch.
I have checked that the refetch method from useInfiniteQuery properly requests with the current pageParam. Also verified that the response of the request included modified data.
However, even when the request's response was modified and the request was made by the manual refetch, the useInfiniteQuery still returns data identical to the previous data.
I can't figure out why this is happening...
Is there any clue to resolve this issue or an ongoing discussion?
Please feel free to correct my practice if I am doing something wrong.
useInfiniteQuery to implement pagination.I am using
next v13 and @tanstack/react-query v4.27.0.The issue I am facing is that the useInfiniteQuery does not modify its returns on manual refetch.
I have checked that the refetch method from useInfiniteQuery properly requests with the current pageParam. Also verified that the response of the request included modified data.
However, even when the request's response was modified and the request was made by the manual refetch, the useInfiniteQuery still returns data identical to the previous data.
I can't figure out why this is happening...
Is there any clue to resolve this issue or an ongoing discussion?
Please feel free to correct my practice if I am doing something wrong.