Skip to content

UseExerciseChoiceResult

Defined in: packages/react/src/hooks/useExerciseChoice.ts:38

data: { tx: { commandId: string; payload: { completionOffset: number; updateId: string; }; status: "executed"; }; } | undefined

Defined in: packages/react/src/hooks/useExerciseChoice.ts:50

Result from the last successful exercise


error: ParsedError | null

Defined in: packages/react/src/hooks/useExerciseChoice.ts:48

Error from the last exercise


exercise: (params) => void

Defined in: packages/react/src/hooks/useExerciseChoice.ts:40

Exercise a choice on a contract

ExerciseChoiceRequest

void


exerciseAsync: (params) => Promise<{ tx: { commandId: string; payload: { completionOffset: number; updateId: string; }; status: "executed"; }; }>

Defined in: packages/react/src/hooks/useExerciseChoice.ts:42

Exercise async with promise return

ExerciseChoiceRequest

Promise<{ tx: { commandId: string; payload: { completionOffset: number; updateId: string; }; status: "executed"; }; }>


isError: boolean

Defined in: packages/react/src/hooks/useExerciseChoice.ts:46

Whether the last exercise failed


isPending: boolean

Defined in: packages/react/src/hooks/useExerciseChoice.ts:44

Whether an exercise is in progress


reset: () => void

Defined in: packages/react/src/hooks/useExerciseChoice.ts:52

Reset the mutation state

void