@dxos/react-ui-form
    Preparing search index...

    Type Alias OptionsLookup

    Loads a select field's options dynamically from a declared subset of the form values, so a select can depend on a sibling field (e.g. publications for a typed handle). deps are the field names the loader reads; the form re-runs it only when one of those values changes. The returned Effect must be self-contained (R = never): it provides its own dependencies (network layer, etc.) in the closure. Construct via optionsLookup for typed deps/values. Pass { combobox: true } to render an editable combobox (type-to-search) instead of a constrained select.

    type OptionsLookup = {
        combobox?: boolean;
        deps: readonly string[];
        eager?: boolean;
        load: (
            values: any,
        ) => Effect.Effect<readonly OptionsLookupEntry[], unknown>;
    }
    Index

    Properties

    combobox?: boolean
    deps: readonly string[]
    eager?: boolean

    List every loaded option before anything is typed (a combobox over a small, known catalogue — models, voices), rather than only once the query narrows a remote search.

    load: (values: any) => Effect.Effect<readonly OptionsLookupEntry[], unknown>