Skip to content

quickmodel / IQHistoryConfig

Interface: IQHistoryConfig ​

Configuration options for the history trail feature.

Provided in @Quick({}, { history }) or globally via QConfig.configure({ history }).

See ​

IQHistoryHandle

Properties ​

maxEntries? ​

optional maxEntries?: number

Maximum number of entries to retain per instance. Oldest entries are dropped once this limit is exceeded. Defaults to 500.


recordMode? ​

optional recordMode?: "operation" | "field"

Controls the granularity of each recorded history entry.

  • 'operation' (default): one entry per $qPatch / $qCopy / $qFrom call, containing all changed fields grouped together in the changes map. A single $qPatch({ a: 1, b: 2 }) that mutates both fields emits exactly one entry with two keys in changes.

  • 'field': one entry per changed field, preserving fine-grained granularity. A single $qPatch({ a: 1, b: 2 }) that mutates both fields emits two entries, each with exactly one key in changes.

Default Value ​

'operation'