The method to call on the API service
Options for the hook
A tuple containing the function to perform the mutation and a boolean indicating if the mutation is in progress
Make sure to use .bind() when passing an API method to this hook to ensure that the method can access .this
Generated using TypeDoc
Hook that returns a function that can be used to perform an api mutation via a method on an API service. Automatically handles loading and error behavior. Use this hook when you want to perform a POST, PUT or DELETE request on an API.