Open History to see the last commit
1---
2id: PersistedReadinessSource
3title: PersistedReadinessSource
4---
5
6Defined in: [packages/db/src/persisted-readiness.ts:8](https://github.com/TanStack/db/blob/main/packages/db/src/persisted-readiness.ts#L8)
7
8**`Internal`**
9
10Capability supplied by a persistence adapter, not by core sync.
11
12## Properties
13
14### getOrStartNetworkDeadline()
15
16```ts
17getOrStartNetworkDeadline: () => number;
18```
19
20Defined in: [packages/db/src/persisted-readiness.ts:12](https://github.com/TanStack/db/blob/main/packages/db/src/persisted-readiness.ts#L12)
21
22Anchor the deadline to this Collection's current sync run.
23
24#### Returns
25
26`number`
27
28***
29
30### getSnapshot()
31
32```ts
33getSnapshot: () => PersistedReadinessSnapshot;
34```
35
36Defined in: [packages/db/src/persisted-readiness.ts:13](https://github.com/TanStack/db/blob/main/packages/db/src/persisted-readiness.ts#L13)
37
38#### Returns
39
40[`PersistedReadinessSnapshot`](../type-aliases/PersistedReadinessSnapshot.md)
41
42***
43
44### networkTimeoutMs
45
46```ts
47networkTimeoutMs: number;
48```
49
50Defined in: [packages/db/src/persisted-readiness.ts:10](https://github.com/TanStack/db/blob/main/packages/db/src/persisted-readiness.ts#L10)
51
52Time to prefer network before a completed persisted restore may render.
53
54***
55
56### subscribe()
57
58```ts
59subscribe: (listener) => () => void;
60```
61
62Defined in: [packages/db/src/persisted-readiness.ts:14](https://github.com/TanStack/db/blob/main/packages/db/src/persisted-readiness.ts#L14)
63
64#### Parameters
65
66##### listener
67
68() => `void`
69
70#### Returns
71
72```ts
73(): void;
74```
75
76##### Returns
77
78`void`