@get-milano/core 2.1.0
    Preparing search index...

    Class MilanoView

    A built view, bound to one document at a time. Everything mutable runs through the view's dispatcher and its work queue, so an update never lands mid-action-list.

    Index
    identity: string
    • The host's signal that the view has come on screen: accepted while not appeared, ignored otherwise, and after teardown. An accepted signal dispatches the document's appear bindings, if any.

      Returns void

    • Installs the context source's cancellation, once, at build. Calling it again is a no-op: the first subscription is the view's.

      Parameters

      • cancel: () => void

      Returns void

    • Internal completion path; the async funnel lands here, and the conformance harness drives it directly.

      Parameters

      • dispatchIndex: number
      • success: boolean
      • payload: MilanoValue | null = null

      Returns void

    • A renderer emission. Undeclared events and mis-typed payloads are dropped and reported before reaching dispatch; declared events with no binding are dropped and reported.

      Parameters

      • node: string
      • event: string
      • payload: MilanoValue | null = null

      Returns void

    • Replaces the document the view is bound to (state and actions spec, Document replacement): the new document passes the gate under the surface's configuration, state whose declaration is unchanged carries over, the provider supplies the rest, and the swap lands on the dispatcher, serialized with dispatch. Throws what build() throws; on a throw the view is exactly as it was. Ignored after teardown.

      Parameters

      • document: string | Uint8Array<ArrayBufferLike>

      Returns Promise<void>

    • Notifies after every re-resolution; the React binding subscribes here.

      Parameters

      • listener: () => void

      Returns () => void

    • The view ceases to participate: completions arriving afterwards drop their follow-ups and report.

      Returns void