UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines 982 B
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