onMutationStateChange
Subscribe to mutation state changes.
onMutationStateChange(callback)
From swoff/mutation/state.ts.
import { onMutationStateChange } from "swoff/mutation/state";Returns an unsubscribe function. Callback receives { id, status, error?, rollbackData? }.