type-alias / @typed/ui/Dom/Types

HostResult

Output that a host override may return.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Host rendering types
Since
1.0.0

Import

import type { HostResult } from "@typed/ui/Dom/Types";

Signatures

export type HostResult = FxInput<RenderEvent> | EffectInput<RenderEvent>;

Why

Both one-shot Effects and push-based Fx streams can represent render output, so external hosts need not adopt a framework-specific mounting protocol.

Ownership and lifetime

renderHost lifts an Effect into Fx; the component Scope owns either form.

Source