From 06413322a399a6fce155daf8bce85ea1e52bd203 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 23 May 2024 16:16:12 +0200 Subject: [PATCH] fix(web): get_untracked for config color --- web/src/page/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/page/config.rs b/web/src/page/config.rs index 7126a196..f7abfb29 100644 --- a/web/src/page/config.rs +++ b/web/src/page/config.rs @@ -7,7 +7,8 @@ pub fn ConfigPage(setter: WriteSignal) -> impl IntoView { let (color, set_color) = leptos_use::use_css_var("--accent"); let (_color_rgb, set_color_rgb) = leptos_use::use_css_var("--accent-rgb"); - let previous_color = config.get().accent_color; + // TODO should this be responsive? idk + let previous_color = config.get_untracked().accent_color; set_color_rgb.set(parse_hex(&previous_color)); set_color.set(previous_color);