useSuspenseInfiniteQuery invalidateQueries and refetchQueries pageParam is not reset to initialPageParam #7739
Unanswered
jamezening
asked this question in
Q&A
Replies: 1 comment
-
please show a minimal reproduction |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have tried invalidating and refetching a
useSuspenseInfiniteQuery
viainvalidateQueries
andrefetchQueries
, but when doing so, the useSuspenseInfiniteQuerypageParam
is not being reset (query is being called with pageParam of last page).rq versions tried
"@tanstack/react-query": "^5.14.1",
and
"@tanstack/react-query": "^5.51.1",
I have tried invalidating and refetching a non suspense infinite query, and the query is being called again with pageParam reset as
initialPageParam
.Has anyone else run into a similar issue?
Beta Was this translation helpful? Give feedback.
All reactions