W3Booster SDK 2.0.0
    Preparing search index...

    Interface ImmediateStore<TSnapshot>

    interface ImmediateStore<TSnapshot> {
        get(): TSnapshot;
        subscribe(
            listener: (snapshot: TSnapshot) => void | Promise<void>,
            options?: SubscriptionOptions,
        ): () => void;
    }

    Type Parameters

    • TSnapshot
    Index
    • SDK stores publish the current value synchronously; adapters also accept change-only sources.

      Parameters

      Returns () => void