feat(frontend): Add generations counter to inform frontends when a list should be re-rendered.

This commit is contained in:
2026-03-14 11:47:27 -04:00
parent e5c875389c
commit a27d529fa7
2 changed files with 15 additions and 1 deletions

View File

@@ -72,6 +72,10 @@ pub struct ViewState {
pub total_items: usize,
pub total_filtered: usize,
pub mode: Mode,
/// Monotonically increasing counter. Each call to
/// `build_view_state()` bumps this, so frontends can
/// detect duplicate broadcasts and skip redundant redraws.
pub generation: u64,
}
/// A single item in the current viewport window. Has the