Default Mutation Fn ?
Hi, is there a way to make a default mutation Fn like the default query Fn for all mutations ? as i do not wish to keep writing the same fetch function for mutations too
i tried the below but doesn't work on useMutation
2 Replies
unwilling-turquoiseOP•3y ago
i changed to below , it works. but i m not sure if its proper way to do :
jolly-crimson•3y ago
You should either pass
queryClient
or queryClientConfig
to the VueQueryPlugin
but not both.
I wonder why TS is not yelling at you.
Also you do not need to setMutationDefaults
as you can just pass it to the constructor