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);