Skip to content

UseLedgerApiResult

Defined in: packages/react/src/hooks/useLedgerApi.ts:30

T = unknown

data: LedgerApiResponse<T> | undefined

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

Response data from the last successful request


error: Error | null

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

Error from the last request


isError: boolean

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

Whether the last request failed


isPending: boolean

Defined in: packages/react/src/hooks/useLedgerApi.ts:36

Whether a request is in progress


request: (params) => void

Defined in: packages/react/src/hooks/useLedgerApi.ts:32

Execute a ledger API request

string

"GET" | "POST" | "PUT" | "DELETE"

string

void


requestAsync: (params) => Promise<LedgerApiResponse<T>>

Defined in: packages/react/src/hooks/useLedgerApi.ts:34

Execute async with promise return

string

"GET" | "POST" | "PUT" | "DELETE"

string

Promise<LedgerApiResponse<T>>


reset: () => void

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

Reset the mutation state

void