Function: useOperationQuery()
useOperationQuery(
__namedParameters):OperationQueryState
Defined in: useOperationQuery.ts:125
Calls a GET operation by its operationId and tracks the response. Params
are one flat object; each lands in the path or the query string as the spec
declares it. Re-runs when the params change, keeping the previous data on
screen until the new response arrives.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { enabled?: boolean; operationId: string; params?: OperationParams; } |
__namedParameters.enabled? | boolean |
__namedParameters.operationId | string |
__namedParameters.params? | OperationParams |