Skip to content

Commit 8feab6e

Browse files
docs: regenerate API documentation (#2351)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 36f8797 commit 8feab6e

24 files changed

Lines changed: 371 additions & 198 deletions
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
---
2+
id: SuspenseBinding
3+
title: SuspenseBinding
4+
---
5+
6+
Defined in: [useLiveSuspenseQuery.ts:77](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L77)
7+
8+
Uncommitted retries may adopt work; successful outputs have one owner.
9+
10+
## Constructors
11+
12+
### Constructor
13+
14+
```ts
15+
new SuspenseBinding(): SuspenseBinding;
16+
```
17+
18+
#### Returns
19+
20+
`SuspenseBinding`
21+
22+
## Properties
23+
24+
### collection?
25+
26+
```ts
27+
optional collection: Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>;
28+
```
29+
30+
Defined in: [useLiveSuspenseQuery.ts:80](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L80)
31+
32+
***
33+
34+
### promise?
35+
36+
```ts
37+
optional promise: Promise<void>;
38+
```
39+
40+
Defined in: [useLiveSuspenseQuery.ts:81](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L81)
41+
42+
***
43+
44+
### ready
45+
46+
```ts
47+
ready: boolean = false;
48+
```
49+
50+
Defined in: [useLiveSuspenseQuery.ts:82](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L82)
51+
52+
## Accessors
53+
54+
### needsOwnCollection
55+
56+
#### Get Signature
57+
58+
```ts
59+
get needsOwnCollection(): boolean;
60+
```
61+
62+
Defined in: [useLiveSuspenseQuery.ts:84](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L84)
63+
64+
##### Returns
65+
66+
`boolean`
67+
68+
## Methods
69+
70+
### claim()
71+
72+
```ts
73+
claim(): () => void | undefined;
74+
```
75+
76+
Defined in: [useLiveSuspenseQuery.ts:184](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L184)
77+
78+
#### Returns
79+
80+
() => `void` \| `undefined`
81+
82+
***
83+
84+
### forkReady()
85+
86+
```ts
87+
forkReady(observer, compile): SuspenseCollection | undefined;
88+
```
89+
90+
Defined in: [useLiveSuspenseQuery.ts:138](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L138)
91+
92+
#### Parameters
93+
94+
##### observer
95+
96+
`LiveQueryObserver`\<`object`, `string` \| `number`\>
97+
98+
##### compile
99+
100+
(`owned`, `windowOwner`) => `SuspenseCollection` \| `null`
101+
102+
#### Returns
103+
104+
`SuspenseCollection` \| `undefined`
105+
106+
***
107+
108+
### read()
109+
110+
```ts
111+
read(snapshot): LiveQuerySnapshot<object, string | number>;
112+
```
113+
114+
Defined in: [useLiveSuspenseQuery.ts:166](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L166)
115+
116+
#### Parameters
117+
118+
##### snapshot
119+
120+
`LiveQuerySnapshot`\<`object`, `string` \| `number`\>
121+
122+
#### Returns
123+
124+
`LiveQuerySnapshot`\<`object`, `string` \| `number`\>
125+
126+
***
127+
128+
### resolve()
129+
130+
```ts
131+
resolve(
132+
input,
133+
hash,
134+
client,
135+
compile): SuspenseCollection | null;
136+
```
137+
138+
Defined in: [useLiveSuspenseQuery.ts:88](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L88)
139+
140+
#### Parameters
141+
142+
##### input
143+
144+
`unknown`
145+
146+
##### hash
147+
148+
`string`
149+
150+
##### client
151+
152+
`DbClient` | `undefined`
153+
154+
##### compile
155+
156+
(`owned`, `windowOwner`) => `SuspenseCollection` \| `null`
157+
158+
#### Returns
159+
160+
`SuspenseCollection` \| `null`

‎docs/framework/react/reference/functions/useLiveQuery.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useLiveQuery
99
function useLiveQuery<TContext>(queryFn): object & LiveQueryStatusFlags;
1010
```
1111

12-
Defined in: [useLiveQuery.ts:376](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L376)
12+
Defined in: [useLiveQuery.ts:321](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L321)
1313

1414
Create a live query using a query function.
1515

@@ -111,7 +111,7 @@ return (
111111
function useLiveQuery<TContext>(queryFn): object & LiveQueryStatusFlags;
112112
```
113113

114-
Defined in: [useLiveQuery.ts:387](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L387)
114+
Defined in: [useLiveQuery.ts:332](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L332)
115115

116116
Create a live query using a query function.
117117

@@ -213,7 +213,7 @@ return (
213213
function useLiveQuery<TContext>(queryFn): object & LiveQueryStatusFlags;
214214
```
215215

216-
Defined in: [useLiveQuery.ts:400](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L400)
216+
Defined in: [useLiveQuery.ts:345](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L345)
217217

218218
Create a live query using a query function.
219219

@@ -318,7 +318,7 @@ return (
318318
function useLiveQuery<TResult, TKey, TUtils>(queryFn): object & LiveQueryStatusFlags;
319319
```
320320

321-
Defined in: [useLiveQuery.ts:413](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L413)
321+
Defined in: [useLiveQuery.ts:358](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L358)
322322

323323
Create a live query using a query function.
324324

@@ -431,7 +431,7 @@ return (
431431
function useLiveQuery<TContext, TResult, TKey, TUtils>(queryFn): object & LiveQueryStatusFlags;
432432
```
433433

434-
Defined in: [useLiveQuery.ts:430](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L430)
434+
Defined in: [useLiveQuery.ts:375](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L375)
435435

436436
Create a live query using a query function.
437437

@@ -550,7 +550,7 @@ return (
550550
function useLiveQuery<TContext>(config): object & LiveQueryStatusFlags;
551551
```
552552

553-
Defined in: [useLiveQuery.ts:491](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L491)
553+
Defined in: [useLiveQuery.ts:436](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L436)
554554

555555
Create a live query using configuration object
556556

@@ -615,7 +615,7 @@ return <div>{data.length} items loaded</div>
615615
function useLiveQuery<TContext>(config): object & LiveQueryStatusFlags;
616616
```
617617

618-
Defined in: [useLiveQuery.ts:502](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L502)
618+
Defined in: [useLiveQuery.ts:447](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L447)
619619

620620
Create a live query using a query function.
621621

@@ -715,7 +715,7 @@ return (
715715
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): object & LiveQueryStatusFlags;
716716
```
717717

718-
Defined in: [useLiveQuery.ts:542](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L542)
718+
Defined in: [useLiveQuery.ts:487](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L487)
719719

720720
Subscribe to an existing live query collection
721721

@@ -783,7 +783,7 @@ return <div>{data.map(item => <Item key={item.id} {...item} />)}</div>
783783
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): object & LiveQueryStatusFlags;
784784
```
785785

786-
Defined in: [useLiveQuery.ts:557](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L557)
786+
Defined in: [useLiveQuery.ts:502](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L502)
787787

788788
Create a live query using a query function.
789789

‎docs/framework/react/reference/functions/useLiveSuspenseQuery.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useLiveSuspenseQuery
99
function useLiveSuspenseQuery<TContext>(queryFn): object;
1010
```
1111

12-
Defined in: [useLiveSuspenseQuery.ts:147](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L147)
12+
Defined in: [useLiveSuspenseQuery.ts:317](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L317)
1313

1414
Create a live query with React Suspense support
1515

@@ -165,7 +165,7 @@ function Profile({ userId }: { userId: string }) {
165165
function useLiveSuspenseQuery<TContext>(config): object;
166166
```
167167

168-
Defined in: [useLiveSuspenseQuery.ts:157](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L157)
168+
Defined in: [useLiveSuspenseQuery.ts:327](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L327)
169169

170170
Create a live query with React Suspense support
171171

@@ -319,7 +319,7 @@ function Profile({ userId }: { userId: string }) {
319319
function useLiveSuspenseQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
320320
```
321321

322-
Defined in: [useLiveSuspenseQuery.ts:167](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L167)
322+
Defined in: [useLiveSuspenseQuery.ts:337](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L337)
323323

324324
Create a live query with React Suspense support
325325

@@ -480,7 +480,7 @@ function Profile({ userId }: { userId: string }) {
480480
function useLiveSuspenseQuery<TResult, TKey, TUtils>(liveQueryCollection): object;
481481
```
482482

483-
Defined in: [useLiveSuspenseQuery.ts:181](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L181)
483+
Defined in: [useLiveSuspenseQuery.ts:351](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveSuspenseQuery.ts#L351)
484484

485485
Create a live query with React Suspense support
486486

‎docs/framework/react/reference/index.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ id: "@tanstack/react-db"
33
title: "@tanstack/react-db"
44
---
55

6+
## Classes
7+
8+
- [SuspenseBinding](classes/SuspenseBinding.md)
9+
610
## Type Aliases
711

812
- [ConditionalUseLiveQueryConfig](type-aliases/ConditionalUseLiveQueryConfig.md)

‎docs/framework/react/reference/type-aliases/ConditionalUseLiveQueryConfig.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: ConditionalUseLiveQueryConfig
77
type ConditionalUseLiveQueryConfig<TContext> = UseLiveQueryConfigOptions<TContext> & object;
88
```
99

10-
Defined in: [useLiveQuery.ts:168](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L168)
10+
Defined in: [useLiveQuery.ts:113](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L113)
1111

1212
## Type Declaration
1313

‎docs/framework/react/reference/type-aliases/UseLiveQueryConfig.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: UseLiveQueryConfig
77
type UseLiveQueryConfig<TContext> = UseLiveQueryConfigOptions<TContext> & Pick<LiveQueryCollectionConfig<TContext>, "query">;
88
```
99

10-
Defined in: [useLiveQuery.ts:164](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L164)
10+
Defined in: [useLiveQuery.ts:109](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L109)
1111

1212
## Type Parameters
1313

‎docs/framework/react/reference/type-aliases/UseLiveQueryStatus.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ title: UseLiveQueryStatus
77
type UseLiveQueryStatus = CollectionStatus | "disabled";
88
```
99

10-
Defined in: [useLiveQuery.ts:138](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L138)
10+
Defined in: [useLiveQuery.ts:83](https://github.com/TanStack/db/blob/main/packages/react-db/src/useLiveQuery.ts#L83)

‎docs/framework/svelte/reference/functions/useLiveQuery.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useLiveQuery
99
function useLiveQuery<TContext>(queryFn, deps?): UseLiveQueryReturn<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, InferResultType<TContext>>;
1010
```
1111

12-
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:202](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L202)
12+
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:203](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L203)
1313

1414
Create a live query using a query function
1515

@@ -135,7 +135,7 @@ const todosQuery = useLiveQuery((q) =>
135135
function useLiveQuery<TContext>(queryFn, deps?): ConditionalUseLiveQueryReturn<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, InferConditionalResultType<TContext>>;
136136
```
137137

138-
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:208](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L208)
138+
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:209](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L209)
139139

140140
Create a live query using a query function
141141

@@ -261,7 +261,7 @@ const todosQuery = useLiveQuery((q) =>
261261
function useLiveQuery<TContext>(config, deps?): UseLiveQueryReturn<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, InferResultType<TContext>>;
262262
```
263263

264-
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:256](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L256)
264+
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:257](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L257)
265265

266266
Create a live query using configuration object
267267

@@ -334,7 +334,7 @@ const itemsQuery = useLiveQuery({
334334
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): UseLiveQueryReturnWithCollection<TResult, TKey, TUtils, TResult[]>;
335335
```
336336

337-
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:305](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L305)
337+
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:306](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L306)
338338

339339
Subscribe to an existing query collection (can be reactive)
340340

@@ -417,7 +417,7 @@ const queryResult = useLiveQuery(sharedQuery)
417417
function useLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): UseLiveQueryReturnWithCollection<TResult, TKey, TUtils, TResult | undefined>;
418418
```
419419

420-
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:316](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L316)
420+
Defined in: [packages/svelte-db/src/useLiveQuery.svelte.ts:317](https://github.com/TanStack/db/blob/main/packages/svelte-db/src/useLiveQuery.svelte.ts#L317)
421421

422422
Create a live query using a query function
423423

0 commit comments

Comments
 (0)