Open History to see the last commit
1---
2id: useLiveInfiniteQuery
3title: useLiveInfiniteQuery
4---
5
6## Call Signature
7
8```ts
9function useLiveInfiniteQuery<TResult, TKey, TUtils>(liveQueryCollection, config): UseLiveInfiniteQueryReturnWithCollection<TResult, TKey, TUtils>;
10```
11
12Defined in: [useLiveInfiniteQuery.ts:95](https://github.com/TanStack/db/blob/main/packages/vue-db/src/useLiveInfiniteQuery.ts#L95)
13
14Create a Vue-native reactive view over the shared live-query window
15controller. The query must include an `orderBy` clause.
16
17### Type Parameters
18
19#### TResult
20
21`TResult` *extends* `object`
22
23#### TKey
24
25`TKey` *extends* `string` \| `number`
26
27#### TUtils
28
29`TUtils` *extends* `UtilsRecord`
30
31### Parameters
32
33#### liveQueryCollection
34
35`MaybeRefOrGetter`\<`Collection`\<`TResult`, `TKey`, `TUtils`, `StandardSchemaV1`\<`unknown`, `unknown`\>, `TResult`\> & `NonSingleResult`\>
36
37#### config
38
39`InfiniteQueryOptions`
40
41### Returns
42
43[`UseLiveInfiniteQueryReturnWithCollection`](../interfaces/UseLiveInfiniteQueryReturnWithCollection.md)\<`TResult`, `TKey`, `TUtils`\>
44
45## Call Signature
46
47```ts
48function useLiveInfiniteQuery<TContext>(
49 queryFn,
50 config,
51deps?): UseLiveInfiniteQueryReturn<TContext>;
52```
53
54Defined in: [useLiveInfiniteQuery.ts:106](https://github.com/TanStack/db/blob/main/packages/vue-db/src/useLiveInfiniteQuery.ts#L106)
55
56Create a Vue-native reactive view over the shared live-query window
57controller. The query must include an `orderBy` clause.
58
59### Type Parameters
60
61#### TContext
62
63`TContext` *extends* `Context` & `NonSingleResult`
64
65### Parameters
66
67#### queryFn
68
69(`q`) => `QueryBuilder`\<`TContext`\>
70
71#### config
72
73`InfiniteQueryOptions`
74
75#### deps?
76
77`unknown`[]
78
79### Returns
80
81[`UseLiveInfiniteQueryReturn`](../interfaces/UseLiveInfiniteQueryReturn.md)\<`TContext`\>