UNPKG

@evolu/react

Version:

Evolu for React

13 lines 735 B
import { Queries, QueriesToQueryRows, QueriesToQueryRowsPromises, Row } from "@evolu/common/local-first"; /** * The same as {@link useQuery}, but for many queries. * * The number of queries must remain stable across renders. */ export declare const useQueries: <R extends Row, Q extends Queries<R>, OQ extends Queries<R>>(queries: [...Q], options?: Partial<{ /** Queries that should be only loaded, not subscribed to. */ readonly once: [...OQ]; /** Reuse existing promises instead of loading so query will not suspense. */ readonly promises: [...QueriesToQueryRowsPromises<Q>, ...QueriesToQueryRowsPromises<OQ>]; }>) => [...QueriesToQueryRows<Q>, ...QueriesToQueryRows<OQ>]; //# sourceMappingURL=useQueries.d.ts.map