Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions docs/framework/angular/reference/functions/injectLiveQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: injectLiveQuery
function injectLiveQuery<TContext, TParams>(options): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
```

Defined in: [index.ts:51](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L51)
Defined in: index.ts:51

### Type Parameters

Expand Down Expand Up @@ -45,7 +45,7 @@ Defined in: [index.ts:51](https://github.com/TanStack/db/blob/main/packages/angu
function injectLiveQuery<TContext, TParams>(options): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
```

Defined in: [index.ts:61](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L61)
Defined in: index.ts:61

### Type Parameters

Expand Down Expand Up @@ -79,7 +79,7 @@ Defined in: [index.ts:61](https://github.com/TanStack/db/blob/main/packages/angu
function injectLiveQuery<TContext>(queryFn): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
```

Defined in: [index.ts:71](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L71)
Defined in: index.ts:71

### Type Parameters

Expand All @@ -103,7 +103,7 @@ Defined in: [index.ts:71](https://github.com/TanStack/db/blob/main/packages/angu
function injectLiveQuery<TContext>(queryFn): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
```

Defined in: [index.ts:74](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L74)
Defined in: index.ts:74

### Type Parameters

Expand All @@ -127,7 +127,7 @@ Defined in: [index.ts:74](https://github.com/TanStack/db/blob/main/packages/angu
function injectLiveQuery<TContext>(config): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
```

Defined in: [index.ts:79](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L79)
Defined in: index.ts:79

### Type Parameters

Expand All @@ -151,7 +151,7 @@ Defined in: [index.ts:79](https://github.com/TanStack/db/blob/main/packages/angu
function injectLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): InjectLiveQueryResult<TResult, TKey, TUtils>;
```

Defined in: [index.ts:82](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L82)
Defined in: index.ts:82

### Type Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: InjectLiveQueryResult

# Interface: InjectLiveQueryResult\<TResult, TKey, TUtils\>

Defined in: [index.ts:26](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L26)
Defined in: index.ts:26

The result of calling `injectLiveQuery`.
Contains reactive signals for the query state and data.
Expand Down Expand Up @@ -35,7 +35,7 @@ collection: Signal<
| null>;
```

Defined in: [index.ts:36](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L36)
Defined in: index.ts:36

A signal containing the underlying collection instance (null for disabled queries)

Expand All @@ -47,7 +47,7 @@ A signal containing the underlying collection instance (null for disabled querie
data: Signal<TResult[]>;
```

Defined in: [index.ts:34](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L34)
Defined in: index.ts:34

A signal containing the results as an array

Expand All @@ -59,7 +59,7 @@ A signal containing the results as an array
isCleanedUp: Signal<boolean>;
```

Defined in: [index.ts:48](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L48)
Defined in: index.ts:48

A signal indicating whether the collection has been cleaned up

Expand All @@ -71,7 +71,7 @@ A signal indicating whether the collection has been cleaned up
isError: Signal<boolean>;
```

Defined in: [index.ts:46](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L46)
Defined in: index.ts:46

A signal indicating whether the collection has an error

Expand All @@ -83,7 +83,7 @@ A signal indicating whether the collection has an error
isIdle: Signal<boolean>;
```

Defined in: [index.ts:44](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L44)
Defined in: index.ts:44

A signal indicating whether the collection is idle

Expand All @@ -95,7 +95,7 @@ A signal indicating whether the collection is idle
isLoading: Signal<boolean>;
```

Defined in: [index.ts:40](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L40)
Defined in: index.ts:40

A signal indicating whether the collection is currently loading

Expand All @@ -107,7 +107,7 @@ A signal indicating whether the collection is currently loading
isReady: Signal<boolean>;
```

Defined in: [index.ts:42](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L42)
Defined in: index.ts:42

A signal indicating whether the collection is ready

Expand All @@ -119,7 +119,7 @@ A signal indicating whether the collection is ready
state: Signal<Map<TKey, TResult>>;
```

Defined in: [index.ts:32](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L32)
Defined in: index.ts:32

A signal containing the complete state map of results keyed by their ID

Expand All @@ -131,6 +131,6 @@ A signal containing the complete state map of results keyed by their ID
status: Signal<CollectionStatus | "disabled">;
```

Defined in: [index.ts:38](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L38)
Defined in: index.ts:38

A signal containing the current status of the collection
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: useLiveInfiniteQuery
function useLiveInfiniteQuery<TResult, TKey, TUtils>(liveQueryCollection, config): UseLiveInfiniteQueryReturn<any>;
```

Defined in: [useLiveInfiniteQuery.ts:113](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L113)
Defined in: useLiveInfiniteQuery.ts:113

Create an infinite query using a query function with live updates

Expand Down Expand Up @@ -118,7 +118,7 @@ function useLiveInfiniteQuery<TContext>(
deps?): UseLiveInfiniteQueryReturn<TContext>;
```

Defined in: [useLiveInfiniteQuery.ts:123](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L123)
Defined in: useLiveInfiniteQuery.ts:123

Create an infinite query using a query function with live updates

Expand Down
16 changes: 8 additions & 8 deletions docs/framework/react/reference/functions/useLiveQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: useLiveQuery
function useLiveQuery<TContext>(queryFn, deps?): object;
```

Defined in: [useLiveQuery.ts:84](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L84)
Defined in: useLiveQuery.ts:84

Create a live query using a query function

Expand Down Expand Up @@ -168,7 +168,7 @@ return (
function useLiveQuery<TContext>(queryFn, deps?): object;
```

Defined in: [useLiveQuery.ts:101](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L101)
Defined in: useLiveQuery.ts:101

Create a live query using a query function

Expand Down Expand Up @@ -329,7 +329,7 @@ return (
function useLiveQuery<TContext>(queryFn, deps?): object;
```

Defined in: [useLiveQuery.ts:120](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L120)
Defined in: useLiveQuery.ts:120

Create a live query using a query function

Expand Down Expand Up @@ -493,7 +493,7 @@ return (
function useLiveQuery<TResult, TKey, TUtils>(queryFn, deps?): object;
```

Defined in: [useLiveQuery.ts:139](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L139)
Defined in: useLiveQuery.ts:139

Create a live query using a query function

Expand Down Expand Up @@ -662,7 +662,7 @@ return (
function useLiveQuery<TContext, TResult, TKey, TUtils>(queryFn, deps?): object;
```

Defined in: [useLiveQuery.ts:162](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L162)
Defined in: useLiveQuery.ts:162

Create a live query using a query function

Expand Down Expand Up @@ -842,7 +842,7 @@ return (
function useLiveQuery<TContext>(config, deps?): object;
```

Defined in: [useLiveQuery.ts:230](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L230)
Defined in: useLiveQuery.ts:230

Create a live query using configuration object

Expand Down Expand Up @@ -972,7 +972,7 @@ return <div>{data.length} items loaded</div>
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
```

Defined in: [useLiveQuery.ts:276](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L276)
Defined in: useLiveQuery.ts:276

Subscribe to an existing live query collection

Expand Down Expand Up @@ -1100,7 +1100,7 @@ return <div>{data.map(item => <Item key={item.id} {...item} />)}</div>
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
```

Defined in: [useLiveQuery.ts:296](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L296)
Defined in: useLiveQuery.ts:296

Create a live query using a query function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: useLiveSuspenseQuery
function useLiveSuspenseQuery<TContext>(queryFn, deps?): object;
```

Defined in: [useLiveSuspenseQuery.ts:109](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L109)
Defined in: useLiveSuspenseQuery.ts:109

Create a live query with React Suspense support

Expand Down Expand Up @@ -167,7 +167,7 @@ const { data, isEnabled } = useLiveQuery(
function useLiveSuspenseQuery<TContext>(config, deps?): object;
```

Defined in: [useLiveSuspenseQuery.ts:119](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L119)
Defined in: useLiveSuspenseQuery.ts:119

Create a live query with React Suspense support

Expand Down Expand Up @@ -321,7 +321,7 @@ const { data, isEnabled } = useLiveQuery(
function useLiveSuspenseQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
```

Defined in: [useLiveSuspenseQuery.ts:129](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L129)
Defined in: useLiveSuspenseQuery.ts:129

Create a live query with React Suspense support

Expand Down Expand Up @@ -476,7 +476,7 @@ const { data, isEnabled } = useLiveQuery(
function useLiveSuspenseQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
```

Defined in: [useLiveSuspenseQuery.ts:142](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L142)
Defined in: useLiveSuspenseQuery.ts:142

Create a live query with React Suspense support

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: usePacedMutations
function usePacedMutations<TVariables, T>(config): (variables) => Transaction<T>;
```

Defined in: [usePacedMutations.ts:93](https://github.com/TanStack/db/blob/main/packages/react-db/src/usePacedMutations.ts#L93)
Defined in: usePacedMutations.ts:93

React hook for managing paced mutations with timing strategies.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: UseLiveInfiniteQueryConfig
type UseLiveInfiniteQueryConfig<TContext> = object;
```

Defined in: [useLiveInfiniteQuery.ts:23](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L23)
Defined in: useLiveInfiniteQuery.ts:23

## Type Parameters

Expand All @@ -25,7 +25,7 @@ Defined in: [useLiveInfiniteQuery.ts:23](https://github.com/TanStack/db/blob/mai
getNextPageParam: (lastPage, allPages, lastPageParam, allPageParams) => number | undefined;
```

Defined in: [useLiveInfiniteQuery.ts:26](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L26)
Defined in: useLiveInfiniteQuery.ts:26

#### Parameters

Expand Down Expand Up @@ -57,7 +57,7 @@ Defined in: [useLiveInfiniteQuery.ts:26](https://github.com/TanStack/db/blob/mai
optional initialPageParam: number;
```

Defined in: [useLiveInfiniteQuery.ts:25](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L25)
Defined in: useLiveInfiniteQuery.ts:25

***

Expand All @@ -67,4 +67,4 @@ Defined in: [useLiveInfiniteQuery.ts:25](https://github.com/TanStack/db/blob/mai
optional pageSize: number;
```

Defined in: [useLiveInfiniteQuery.ts:24](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L24)
Defined in: useLiveInfiniteQuery.ts:24
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: UseLiveInfiniteQueryReturn
type UseLiveInfiniteQueryReturn<TContext> = Omit<ReturnType<typeof useLiveQuery>, "data"> & object;
```

Defined in: [useLiveInfiniteQuery.ts:34](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveInfiniteQuery.ts#L34)
Defined in: useLiveInfiniteQuery.ts:34

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ title: UseLiveQueryStatus
type UseLiveQueryStatus = CollectionStatus | "disabled";
```

Defined in: [useLiveQuery.ts:23](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L23)
Defined in: useLiveQuery.ts:23
8 changes: 4 additions & 4 deletions docs/framework/solid/reference/functions/useLiveQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: useLiveQuery
function useLiveQuery<TContext>(queryFn): Accessor<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }[]> & object;
```

Defined in: [useLiveQuery.ts:98](https://github.com/TanStack/db/blob/main/packages/solid-db/src/useLiveQuery.ts#L98)
Defined in: useLiveQuery.ts:98

Create a live query using a query function

Expand Down Expand Up @@ -111,7 +111,7 @@ return (
function useLiveQuery<TContext>(queryFn): Accessor<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }[]> & object;
```

Defined in: [useLiveQuery.ts:117](https://github.com/TanStack/db/blob/main/packages/solid-db/src/useLiveQuery.ts#L117)
Defined in: useLiveQuery.ts:117

Create a live query using a query function

Expand Down Expand Up @@ -211,7 +211,7 @@ return (
function useLiveQuery<TContext>(config): Accessor<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }[]> & object;
```

Defined in: [useLiveQuery.ts:178](https://github.com/TanStack/db/blob/main/packages/solid-db/src/useLiveQuery.ts#L178)
Defined in: useLiveQuery.ts:178

Create a live query using configuration object

Expand Down Expand Up @@ -280,7 +280,7 @@ return (
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): Accessor<TResult[]> & object;
```

Defined in: [useLiveQuery.ts:232](https://github.com/TanStack/db/blob/main/packages/solid-db/src/useLiveQuery.ts#L232)
Defined in: useLiveQuery.ts:232

Subscribe to an existing live query collection

Expand Down
Loading
Loading