Error when using ensureQueryData
with infiniteQueryOptions
#6712
-
I'm having issues in v5 when trying to use See this StackBlitz for a reproduction: https://stackblitz.com/edit/vitejs-vite-tnfvrc?file=src%2Froutes%2Findex.tsx In a TanStack Router Am I composing things incorrectly? Are Also, despite setting |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
Since it's just a thin wrapper over
can't confirm that, probably a side-effect of the above issue ? forked, working stackblitz: https://stackblitz.com/edit/vitejs-vite-suancq |
Beta Was this translation helpful? Give feedback.
-
We’re now shipping a dedicated https://tanstack.com/query/latest/docs/reference/QueryClient#queryclientensureinfinitequerydata |
Beta Was this translation helpful? Give feedback.
We’re now shipping a dedicated
ensureInfiniteQueryData
function for this:https://tanstack.com/query/latest/docs/reference/QueryClient#queryclientensureinfinitequerydata