Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.

Namespace

Type Parameters

  • T = any

Hierarchy

  • Base
    • SnapshotSource

Constructors

Properties

Accessors

Methods

Constructors

Properties

wire: Transport<EntityType>

Accessors

Methods

  • Call the SnapshotSource's applySnapshot method defined by SnapshotSource#init init.

    Returns

    Parameters

    • snapshot: T

    Returns Promise<void>

  • Call the SnapshotSource's getSnapshot method defined by SnapshotSource#init init.

    Returns

    Returns Promise<T>

  • Method to determine if the SnapshotSource has been initialized.

    Use when the parent application is starting up to ensure the SnapshotSource is able to accept and apply a snapshot using the applySnapshot method.

    Returns

    Tutorial

    SnapshotSource.ready

    Returns Promise<void>

Generated using TypeDoc