debug: add TorrentTable logging to trace UI rendering
Some checks failed
Build MIPS Binary / build (push) Has been cancelled
Some checks failed
Build MIPS Binary / build (push) Has been cancelled
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user