connect function

Module @runic-artifex/views-effect in @runic-artifex/views-effect 0.23.0

function connect<C extends ViewClient>(source: ViewConnector<C> | (() => PromiseLike<C>)): Effect.Effect<C, ViewError, Scope.Scope>;

Connects a generated client for the lifetime of the current Scope and disposes it when the scope closes. Pass a generated connect<Name> function or a page reference from a content property.

const editor = yield* connect(connectEditor);