Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

ConvexCollectionUtils.md

48 lines857 Bytes

1---
2id: ConvexCollectionUtils
3title: ConvexCollectionUtils
4---
5​
6Defined in: [options.ts:15](https://github.com/tanstack/db/blob/main/packages/convex-db-collection/src/options.ts#L15)
7​
8## Extends
9​
10- `UtilsRecord`
11​
12## Indexable
13​
14```ts
15[key: string]: any
16```
17​
18## Properties
19​
20### awaitSync()
21​
22```ts
23awaitSync: () => Promise<void>;
24```
25​
26Defined in: [options.ts:19](https://github.com/tanstack/db/blob/main/packages/convex-db-collection/src/options.ts#L19)
27​
28Refresh the source cache and wait for sync acceptance, safe inside mutation handlers.
29​
30#### Returns
31​
32`Promise`\<`void`\>
33​
34***
35​
36### getSyncError()
37​
38```ts
39getSyncError: () => unknown;
40```
41​
42Defined in: [options.ts:17](https://github.com/tanstack/db/blob/main/packages/convex-db-collection/src/options.ts#L17)
43​
44Last subscription or conversion error, cleared by the next valid result.
45​
46#### Returns
47​
48`unknown`