T
TanStack3y ago
spiritual-aqua

Mutation forcing me to pass some data

Hey everyone,
const logoutMutation = useMutation({
mutationFn: logout,
});
logoutMutation.mutate() // typescript giving error of not passing anything
const logoutMutation = useMutation({
mutationFn: logout,
});
logoutMutation.mutate() // typescript giving error of not passing anything
The thing is that I really don't need to pass any data. So is there any way to prevent this. Thanks
1 Reply

Did you find this page helpful?