Remote / foldkit-remote/persistence

ClockedOptions

interface · packages/remote/src/persistence.ts:240

interface ClockedOptions extends SnapshotOptions {
  readonly now?: number | undefined
}

dehydrate's and hydrate's options: SnapshotOptions, and the time to judge ages at.

Members

ClockedOptions.now

property · packages/remote/src/persistence.ts:246

readonly now?: number | undefined

The clock reading, in milliseconds, at which what has expired is dropped. Without it nothing expires: a snapshot carried into a page (SSR) is whole. save and restore read Effect's Clock.