Skip to content

DocumentStoreOptions

Defined in: index.ts:86

optional closeDelay?: number

Defined in: index.ts:95

Milliseconds to keep the document open after the final release, so a remount within that time reuses it. By default the close is queued after the current turn, so only a same-turn reconnect, such as a StrictMode remount, keeps it open.


optional manageLifecycle?: boolean

Defined in: index.ts:88

Set false when the caller opens and closes an already shared handle.


optional undeliveredCloseDelay?: number

Defined in: index.ts:103

Milliseconds to keep the document open after the final release while deliveryFailure is set, because the undelivered change exists only in the open handle. Defaults to 30 minutes; the store then closes the handle and the change is lost unless a checkpoint holds it. Infinity keeps the document open until stop().