Interface DatabaseEvents

Events that may be triggered by the LocalDatabase emitter

Hierarchy

  • DatabaseEvents

Properties

fetchProgress: ((opts: DownloadProgressOpts) => void)

Type declaration

hydrationDone: ((opts: CommonProgressOpts) => void)

Type declaration

    • (opts: CommonProgressOpts): void
    • Triggered when the database has been fully hydrated.

      There is a period of time between hydrationProgress reporting 100% copletion, and the database being flushed, so it may be useful to wait for this event before considering the databas to be fully hydrated.

      Parameters

      Returns void

hydrationProgress: ((opts: HydrationProgressOpts) => void)

Type declaration

Generated using TypeDoc