queryAndWaitFor()
Home > @gooddata/sdk-ui-dashboard > queryAndWaitFor
queryAndWaitFor() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Dispatches a query and returns a promise to its result.
Signature:
export declare function queryAndWaitFor<TQuery extends DashboardQueries, TQueryResult>(dispatch: DashboardDispatch, query: TQuery): Promise<TQueryResult>;
Parameters
Parameter | Type | Description |
---|---|---|
dispatch | DashboardDispatch | dashboard dispatch to use |
query | TQuery | query to trigger and wait for results of |
Returns:
Promise<TQueryResult>
Promise of the query result