@logixjs/core
    Preparing search index...

    Function fromSubscriptionRef

    • Create an ExternalStore from a SubscriptionRef.

      Notes:

      • getSnapshot() is implemented via SubscriptionRef.get(ref) (must be a synchronous pure read; do not hide IO inside).
      • change notifications are batched via microtask (multiple updates in the same microtask trigger a single notify).

      Type Parameters

      • T

      Parameters

      • ref: SubscriptionRef<T>

      Returns ExternalStore.ExternalStore<T>