5 Replies
this works with the non suspense
useQuery
from tanstack, even without the query function
but throws an error with useSuspenseQuery
i think in general there’s a lot of rough edges with the tanstack integration, my hope is that the API of the normal use query will just be improved
hmm @ballingt I think has done the most with Tanstack, he might be able to help
@devagr hey did you see there are some extra setup steps?
@devagr see https://github.com/get-convex/convex-react-query?tab=readme-ov-file#setup
oh nevermind, if normal useQuery works then should be ok
@devagr are you using useSuspenseQuery with TanStack Start or somewhere else?
in this demo app https://convex-tanstack-start.vercel.app/ (from quite a while ago) it worked
https://github.com/get-convex/convex-tanstack-start/blob/main/app/routes/react-query.tsx#L22-L25
oh yeah maybe you missed a setup step, there is supposed to be a default query function set
yep i was missing that setup step
thank you very much @ballingt
the lack of suspense was bugging me so much