T
tRPC
Change Theme
Search Answer Overflow
Login
pizza3927
Posts
Comments
T
tRPC
•
Created by Jonathan on 2/21/2025 in
#❓-help
Where did useUtils go?
I believe the syntax has changed a couple of months ago. It works for me as follows:
const
trpc
=
createTRPCReact
<
AppRouter
>({ });
// access it via the trpc object
trpc.
useUtils
()
const
trpc
=
createTRPCReact
<
AppRouter
>({ });
// access it via the trpc object
trpc.
useUtils
()
8 replies