function useLiveInfiniteQuery<TResult, TKey, TUtils>(liveQueryCollection, config): UseLiveInfiniteQueryReturnWithCollection<TResult, TKey, TUtils>;Defined in: useLiveInfiniteQuery.ts:86
Page through an ordered live query, growing one live-query Collection's window with utils.setWindow() instead of recreating it per page.
The query must include .orderBy(). Its identity follows useLiveQuery: derived from the query IR, or named by queryKey. A query whose IR cannot be hashed throws UnhashableQueryIRError unless queryKey is supplied.
TResult extends object
TKey extends string | number
TUtils extends Record<string, any>
Collection<TResult, TKey, TUtils, StandardSchemaV1<unknown, unknown>, TResult> & NonSingleResult
UseLiveInfiniteQueryConfig<any>
UseLiveInfiniteQueryReturnWithCollection<TResult, TKey, TUtils>
const { pages, fetchNextPage, hasNextPage } = useLiveInfiniteQuery(
(q) =>
q
.from({ posts: postsCollection })
.orderBy(({ posts }) => posts.createdAt, `desc`),
{ pageSize: 20 },
)function useLiveInfiniteQuery<TContext>(queryFn, config): UseLiveInfiniteQueryReturn<TContext>;Defined in: useLiveInfiniteQuery.ts:95
Page through an ordered live query, growing one live-query Collection's window with utils.setWindow() instead of recreating it per page.
The query must include .orderBy(). Its identity follows useLiveQuery: derived from the query IR, or named by queryKey. A query whose IR cannot be hashed throws UnhashableQueryIRError unless queryKey is supplied.
TContext extends Context
(q) => QueryBuilder<TContext>
UseLiveInfiniteQueryConfig<TContext>
UseLiveInfiniteQueryReturn<TContext>
const { pages, fetchNextPage, hasNextPage } = useLiveInfiniteQuery(
(q) =>
q
.from({ posts: postsCollection })
.orderBy(({ posts }) => posts.createdAt, `desc`),
{ pageSize: 20 },
)