synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
15 lines • 982 B
TypeScript
import { RowSet } from '@sage-bionetworks/synapse-types';
/**
* Fetches the row data for a query and returns a RowSet that can be rendered as cards or a table. Respects the value of
* QueryContext.isInfinite.
* @param initialLimit
*/
export declare function useRowSet(initialLimit?: number): {
rowSet: RowSet | undefined;
progressMessage: string | undefined;
isLoading: boolean;
isLoadingNewPage: boolean;
fetchNextPageOfInfiniteData: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<import("@sage-bionetworks/synapse-types").AsynchronousJobStatus<import("@sage-bionetworks/synapse-types").QueryBundleRequest, import("@sage-bionetworks/synapse-types").QueryResultBundle>, unknown>, import("@sage-bionetworks/synapse-client").SynapseClientError>>;
hasNextPageOfInfiniteData: boolean;
};
//# sourceMappingURL=UseRowSet.d.ts.map