type UseMutationOptions<TData, TError, TVariables, TOnMutateResult> = Accessor<MutationOptions<TData, TError, TVariables, TOnMutateResult>>;Defined in: packages/solid-query/src/types.ts:258
The accessor useMutation expects as its first argument — Solid re-evaluates it reactively, so callbacks and other options can depend on signals.
TData = unknown
The type your mutationFn resolves to.
TError = DefaultError
The type of errors your mutationFn may throw.
TVariables = void
The type of the variables your mutationFn accepts.
TOnMutateResult = unknown
The type returned by onMutate, passed on to onSuccess/onError/onSettled.