useEvaMutation
#
DescriptionUse this hook to query an EVA service as a mutation.
This especially comes in handy with Create, Update and Delete services.
caution
The hook must be used within EvaQueryProvider
#
UsageYou could create a custom service hook like this:
import { useEvaMutation } from '@springtree/eva-suite-react-hooks';
const useCompleteReservationCleanupTaskMutation = ( options?: UseMutationOptions< EVA.Core.EmptyResponseMessage | undefined, any, any, any >,) => useEvaMutation< EVA.Core.CompleteReservationCleanup, EVA.Core.EmptyResponseMessage >(Core.CompleteReservationCleanup, options);