quickmodel / IQHistoryConfig
Interface: IQHistoryConfig
Configuration options for the history trail feature.
Provided in @Quick({}, { history }) or globally via QConfig.configure({ history }).
See
Properties
maxEntries?
optionalmaxEntries?:number
Maximum number of entries to retain per instance. Oldest entries are dropped once this limit is exceeded. Defaults to 500.
recordMode?
optionalrecordMode?:"operation"|"field"
Controls the granularity of each recorded history entry.
'operation'(default): one entry per$qPatch/$qCopy/$qFromcall, containing all changed fields grouped together in thechangesmap. A single$qPatch({ a: 1, b: 2 })that mutates both fields emits exactly one entry with two keys inchanges.'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 inchanges.
Default Value
'operation'