StateHistory<
T> =LixSelectable<EntityStateHistoryView<T>>
Type for querying entity history.
This type unwraps all LixGenerated markers and includes historical tracking columns like change_id, change_set_id, and depth. Use this for blame functionality and understanding how entities evolved.
History queries are read-only.
// Use StateHistory for blame UI
interface BlameViewProps {
history: StateHistory<KeyValue>[];
}
function BlameView({ history }: BlameViewProps) {
return (
<ul>
{history.map(state => (
<li key={state.lixcol_change_id}>
<strong>Depth {state.lixcol_depth}:</strong> {state.value}
<br />
<small>Change: {state.lixcol_change_id}</small>
</li>
))}
</ul>
);
}| Type Parameter |
|---|
T |