TRPC useContext, not seeing trpc react-query helpers

Hey,

I want to create optimistic update, but my trpc useContext does not see methods that are mentioned in docs. Anyone tried doing that? Do I need to add something to the config?
I'm attaching screenshot of my code.

Here is trpc docs page about useContext usage which isn't accurate to what I'm getting. https://trpc.io/docs/useContext
image.png
useContext is a hook that gives you access to helpers that let you manage the cached data of the queries you execute via @trpc/react-query. These helpers are actually thin wrappers around @tanstack/react-query's queryClient methods. If you want more in-depth information about options and usage patterns for useContext helpers than what we provide...
useContext | tRPC
Was this page helpful?