Skip to content

Interface: UseServingInvokeResult\<T, TBody\>

T = unknown

TBody = Record<string, unknown>

data: T | null

Response data, null until loaded.


error: string | null

Error message, if any.


invoke: (overrideBody?) => Promise<T | null>

Trigger the invocation. Pass an optional body override for this invocation.

TBody

Promise<T | null>


loading: boolean

Whether a request is in progress.