Interface: UseServingInvokeResult\<T, TBody\>
Type Parameters
Section titled “Type Parameters”T = unknown
TBody = Record<string, unknown>
Properties
Section titled “Properties”data:
T|null
Response data, null until loaded.
error:
string|null
Error message, if any.
invoke
Section titled “invoke”invoke: (
overrideBody?) =>Promise<T|null>
Trigger the invocation. Pass an optional body override for this invocation.
Parameters
Section titled “Parameters”overrideBody?
Section titled “overrideBody?”TBody
Returns
Section titled “Returns”Promise<T | null>
loading
Section titled “loading”loading:
boolean
Whether a request is in progress.