type UseMutationResult<TData, TError, TVariables, TOnMutateResult> = UseBaseMutationResult<TData, TError, TVariables, TOnMutateResult>;Defined in: packages/solid-query/src/types.ts:340
The result of useMutation. Same as UseBaseMutationResult.
TData = unknown
The type your mutationFn resolves to.
TError = DefaultError
The type of errors your mutationFn may throw.
TVariables = unknown
The type of the variable passed to mutate/mutateAsync.
TOnMutateResult = unknown
The type returned by onMutate, passed to onSuccess/onError/onSettled as their onMutateResult parameter — useful for optimistic-update rollback data.