BholmesdevB
Convex Community3mo ago
3 replies
Bholmesdev

Issue with useSuspenseQuery for queries that accept args

I'm trying out Convex with tanstack-query, and I'm hitting an odd type error while running my .get() function. It seems the output type is incorrect when being passed to useSuspenseQuery, and my application in stuck in a Loading... state if I attempt to run this. I've tried:
- Passing an empty object
- Passing skip and nothing else
- Passing { id: selectedNoteId ?? '' }

The type error persists. Interestingly, I don't see a type error for queries that don't accept args, like my list query. That query also runs successfully with suspense

Source: https://github.com/bholmesdev/convex-debugging/blob/main/src/App.tsx#L13
GitHub
Contribute to bholmesdev/convex-debugging development by creating an account on GitHub.
convex-debugging/src/App.tsx at main · bholmesdev/convex-debugging
Was this page helpful?