Running into a Error with UseMutation
Hello,
I am running into an error
TypeError: Cannot read properties of null (reading 'client')
when using useMutation()
. I am new to to react-query and TRPC so some help would be appreciated. Thanks!
4 Replies
Could you maybe share the repo? or the full component file? This typically wouldn't happen if tRPC has been initialized.
Yup, I am using create t3 app without any modifications really. Here is the component:
Never-mind, I realized I stopped wrapping the app with TRPC. Everything is working again after re-wrapping it 👍