@logixjs/core
    Preparing search index...

    Function fromStream

    • Create an ExternalStore from a Stream.

      Notes:

      • Stream has no synchronous "current" snapshot; you MUST provide { initial } (or { current }).
      • { initial } may be stale if the stream already emitted before subscription; prefer fromService/fromSubscriptionRef for reliable current.

      Type Parameters

      • A
      • E

      Parameters

      • stream: Stream<A, E, never>
      • Optionaloptions: { current?: A; initial?: A }

      Returns ExternalStore.ExternalStore<A>