Defined in: preact-query/src/types.ts:409
The options accepted by useMutation. Same as MutationObserverOptions from @tanstack/query-core, minus the internal _defaulted flag.
OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, "_defaulted">
TData = unknown
The type your mutation function resolves to.
TError = DefaultError
The type of errors your mutation function may throw.
TVariables = void
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.