From 54fa246229d2645d3fe054880065276387ebe6c7 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:44:39 -0400 Subject: [PATCH] fix browser not updating live --- client/src/components/browser.rs | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/client/src/components/browser.rs b/client/src/components/browser.rs index ae33049..f99f4f6 100644 --- a/client/src/components/browser.rs +++ b/client/src/components/browser.rs @@ -59,20 +59,21 @@ pub fn Browser() -> impl IntoView { - won't update the children if the id doesn't change + {game_browser_context() + .iter() + .cloned() + .map(|game| { view! { + { + logging::log!("I ran"); + } - {&game.name} - {&game.host} - - {&game.players.to_string()} - - - {&game.packs.len().to_string()} - + {game.name} + {game.host} + {game.players} + {game.packs.len()}