Skip to content

UseSubmitCommandResult

Defined in: packages/react/src/hooks/useSubmitCommand.ts:35

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

Defined in: packages/react/src/hooks/useSubmitCommand.ts:47

Result from the last successful submission


error: ParsedError | null

Defined in: packages/react/src/hooks/useSubmitCommand.ts:45

Error from the last submission


isError: boolean

Defined in: packages/react/src/hooks/useSubmitCommand.ts:43

Whether the last submission failed


isPending: boolean

Defined in: packages/react/src/hooks/useSubmitCommand.ts:41

Whether a submission is in progress


reset: () => void

Defined in: packages/react/src/hooks/useSubmitCommand.ts:49

Reset the mutation state

void


submit: (params) => void

Defined in: packages/react/src/hooks/useSubmitCommand.ts:37

Submit a command

string[]

string

z.ZodRecord<z.ZodString, z.ZodAny>

object[]

string[]

string[]

string

void


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

Defined in: packages/react/src/hooks/useSubmitCommand.ts:39

Submit async with promise return

string[]

string

z.ZodRecord<z.ZodString, z.ZodAny>

object[]

string[]

string[]

string

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