Member Junction
    Preparing search index...

    Interface SaveContext

    Context object that flows through the entire save pipeline. Created once at the start of Save(), populated with pre-save field state, and passed to every hook. Hooks can read field state and write to the extensible State bag to pass data to downstream hooks.

    This is parallel-safe — each Save() call gets its own SaveContext instance.

    interface SaveContext {
        Fields: SaveContextField[];
        IsNew: boolean;
        State: Record<string, unknown>;
    }
    Index

    Properties

    Properties

    Pre-save snapshot of all field states (dirty flags, old/new values)

    IsNew: boolean

    Whether this is a new record (not yet saved to the database)

    State: Record<string, unknown>

    Extensible key-value bag for hooks to pass data across the save pipeline