The hooks provided by
@trpc/reactare a thin wrapper around React Query. For in-depth information about options and usage patterns, refer to their docs on Queries.
You pass a
[path, input]-tuple as the first argument. You'll notice that you get autocompletion on the
path and automatic typesafety on the
input-argument is optional, you can omit the
, input part of the argument.