queryAndWaitFor()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Dispatches a query and returns a promise to its result.
export declare function queryAndWaitFor<TQuery extends DashboardQueries, TQueryResult>(dispatch: DashboardDispatch, query: TQuery): Promise<TQueryResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
dispatch | dashboard dispatch to use | |
query | TQuery | query to trigger and wait for results of |
Returns
Promise<TQueryResult>
Promise of the query result