From fef4c1cc20c1aee5d58922da24744fba74657127 Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Thu, 26 Dec 2024 12:34:28 -0600 Subject: [PATCH] refactor: Simplify FreenetApiSynchronizer initialization in App component --- ui/src/components/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/app.rs b/ui/src/components/app.rs index 04a472f..fcc351e 100644 --- a/ui/src/components/app.rs +++ b/ui/src/components/app.rs @@ -17,7 +17,7 @@ pub fn App() -> Element { use_context_provider(|| Signal::new(EditRoomModalSignal { room: None })); use_context_provider(|| Signal::new(CreateRoomModalSignal { show: false })); - let _freenet_api_synchronizer = use_hook(FreenetApiSynchronizer::start); + FreenetApiSynchronizer::start(); rsx! { Stylesheet { href: asset!("./assets/bulma.min.css") }