debug: add TorrentTable logging to trace UI rendering
Some checks failed
Build MIPS Binary / build (push) Has been cancelled

This commit is contained in:
spinline
2026-02-09 22:09:55 +03:00
parent 4d88660d91
commit 96ca09b9bd

View File

@@ -52,6 +52,9 @@ pub fn TorrentTable() -> impl IntoView {
let filtered_hashes = move || {
store.torrents.with(|map| {
let count = map.len();
log::debug!("TorrentTable: store.torrents has {} entries", count);
let mut torrents: Vec<&shared::Torrent> = map.values().filter(|t| {
let filter = store.filter.get();
let search = store.search_query.get().to_lowercase();
@@ -68,6 +71,8 @@ pub fn TorrentTable() -> impl IntoView {
matches_filter && matches_search
}).collect();
log::debug!("TorrentTable: {} torrents after filtering", torrents.len());
torrents.sort_by(|a, b| {
let col = sort_col.0.get();
let dir = sort_dir.0.get();