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

    Type Alias CreateEntryOverride<S>

    Per-typename override for the ref-field inline create form and its submission handler. The type parameter S links the form schema's decoded type to the createObject values argument, ensuring the schema and the handler agree on the shape of the form data.

    type CreateEntryOverride<
        S extends Schema.Codec<any, any> = Schema.Codec<any, any>,
    > = {
        createObject?: (
            values: Schema.Schema.Type<S>,
            db: Database.Database,
        ) => Promise<Obj.Unknown | undefined>;
        inputSchema?: S;
    }

    Type Parameters

    • S extends Schema.Codec<any, any> = Schema.Codec<any, any>
    Index

    Properties

    createObject?: (
        values: Schema.Schema.Type<S>,
        db: Database.Database,
    ) => Promise<Obj.Unknown | undefined>

    Runs instead of the default onCreate(schema, values) path; values are typed from inputSchema. Resolves to undefined where the create only starts the work and no object exists yet — the ref slot is then left unset rather than pointed at nothing.

    inputSchema?: S

    Replaces the raw ECHO type schema for the inline create form.