TypeError: queryClient.getMutationDefaults is not a function (it is undefined)
Hi!
There's not much code to show here, as I'm really not sure where the error actually occurs.
In my React component I have:
This gives the following error:
Has anyone experienced the same? I can't find any good results on Google, so I guess it's not a typical issue.
The is the first mutation I've tried to do. GET queries are working just fine.
There's not much code to show here, as I'm really not sure where the error actually occurs.
In my React component I have:
const { mutate } = api.story.create.useMutation();This gives the following error:
ERROR TypeError: queryClient.getMutationDefaults is not a function (it is undefined)Has anyone experienced the same? I can't find any good results on Google, so I guess it's not a typical issue.
The is the first mutation I've tried to do. GET queries are working just fine.
message.txt9.18KB