Member Junction
    Preparing search index...

    Interface ICloneHookConfig

    interface ICloneHookConfig {
        AIActions?: "suppress" | "fire";
        EntityActions?: "suppress" | "fire";
        PostCloneAction?: string;
        PreSaveOverrides?: Record<string, unknown>;
        RestoreAfterSave?: string[];
        ServerGeneratedChildren?: string[];
    }
    Index

    Properties

    AIActions?: "suppress" | "fire"

    Entity AI Actions. Default 'suppress': each can be a paid model call per cloned row.

    EntityActions?: "suppress" | "fire"

    Entity Actions (Create/Update invocations) during the clone save. Default 'fire', as for any create.

    PostCloneAction?: string

    Action run once per created ROOT after commit, with the new key.

    PreSaveOverrides?: Record<string, unknown>

    Values set before the save to keep expensive hooks quiet, restored on the row after the clone when RestoreAfterSave is true.

    RestoreAfterSave?: string[]
    ServerGeneratedChildren?: string[]

    Children the entity's own server Save() creates. The engine never clones these, and warns if a relationship policy tries.