form-graph
    Preparing search index...

    Interface GraphControllerProps<G, K>

    interface GraphControllerProps<G extends AnyGraph, K extends GraphFieldName<G>> {
        graph: G;
        name: K;
        render: (
            props: ControllerRenderProps<
                GraphFieldValue<G, K>,
                GraphFieldMeta<G, K>,
                GraphFieldInput<G, K>,
            >,
        ) => ReactElement<any, string | JSXElementConstructor<any>> | null;
        store?: AnyStore;
    }

    Type Parameters

    • G extends AnyGraph
    • K extends GraphFieldName<G>
    Index
    graph: G

    TYPE-ONLY: the graph definition whose registry constrains name and types value/meta — the live store still comes from (or the store prop). Pass the graph whose fields this control belongs to; a hub-mounted section graph works because field names are shared. Computeds and branch tags resolve through the state type (meta undefined).

    name: K
    render: (
        props: ControllerRenderProps<
            GraphFieldValue<G, K>,
            GraphFieldMeta<G, K>,
            GraphFieldInput<G, K>,
        >,
    ) => ReactElement<any, string | JSXElementConstructor<any>> | null
    store?: AnyStore