pizza3927
pizza3927
TtRPC
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