The last successful server response, or undefined before the first success.
The most recent failure; cleared by the next mutate or reset.
A mutation is currently in flight.
Runs the mutation. Resolves with the server response; rejects on failure
(the failure is also captured in MutationHookResult.error, so a
fire-and-forget caller should read error and an awaiting caller should
try/catch).
Clears state back to idle and abandons any in-flight result.
The value returned by a mutation-backed hook. The write-side counterpart to FetcherHookResult: local
{mutate, isPending, error, data, reset}state around a core mutation action.