patrickP
tRPC3y ago
3 replies
patrick

query with no input reports error

i have a simple router with a list procedure that takes no input and just does a .query()

it used to work, but now in the client side, when i try to call .useQuery() with no parameters i'm getting this error...

Expected 1-2 arguments, but got 0.ts(2554)
createTRPCReact.d.ts(16, 140): An argument for 'input' was not provided.
(property) useQuery: ProcedureUseQuery
image.png
Was this page helpful?