From d2284727a241958ec04af5478acf1e43bf28eca6 Mon Sep 17 00:00:00 2001 From: mathieu Date: Sat, 16 May 2026 02:08:53 +0200 Subject: [PATCH] fix(hosts): use LocalResource for network/app dropdowns to fix hydration blank Resource::new() with SSR returns None during hydration outside , causing dropdowns to stay empty on direct page load. LocalResource fetches client-side only, bypassing the hydration mismatch entirely. Co-Authored-By: Claude Sonnet 4.6 --- src/client/hosts.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/hosts.rs b/src/client/hosts.rs index 55bb342..00b2e5a 100644 --- a/src/client/hosts.rs +++ b/src/client/hosts.rs @@ -32,7 +32,7 @@ const PER_PAGE_OPTIONS: &[(i64, &str)] = &[ #[component] fn AddHostModal( create_action: ServerAction, - networks_res: Resource, ServerFnError>>, + networks_res: LocalResource, ServerFnError>>, show_modal: RwSignal, ) -> impl IntoView { // Close the modal automatically after a successful creation. @@ -70,7 +70,7 @@ fn AddHostModal(