SwoffSwoff

getMutationState

Current mutation state by ID.

getMutationState(id)

From swoff/mutation/state.ts.

import { getMutationState } from "swoff/mutation/state";

Returns { status: 'pending' | 'in-flight' | 'completed' | 'failed', error?, rollbackData? } or undefined.

On this page