Turbo
Turbo2y ago

useQuery types are `never`

i don't even know how to explain this, why are all the types in useQuery never? I just added convex to an existing react typescript project is there something else i'm supposed to do before i start using convex functions in /convex? EDIT: interestingly, using useQueryGeneric works?
No description
No description
6 Replies
ballingt
ballingt2y ago
Curious what the type of API if you import that from ./convex/_generated/api, sounds like an issue with that generated code or an issue with one of your convex functions
Turbo
TurboOP2y ago
lemme try that import also, the convex function works just right when i use the generic one, so i doubt it could be the convex function
Turbo
TurboOP2y ago
this seems fine? atleast i don't see any type never
No description
Turbo
TurboOP2y ago
wait hol up it fixed itself useQuery works fine now? i didn't even restart my workspace or anything-
ballingt
ballingt2y ago
huh, still helpful to hear about
Turbo
TurboOP2y ago
👍 thanks!

Did you find this page helpful?