TanStackT
TanStack3y ago
1 reply
clean-aquamarine

Mutation forcing me to pass some data

Hey everyone,

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
Was this page helpful?