From 39edb6eb45e5969e7b4c1a57650a4af059d7e644 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 4 Jul 2023 11:52:13 -0400 Subject: [PATCH] fix: untracked read in `` (#1280) --- router/src/components/redirect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/components/redirect.rs b/router/src/components/redirect.rs index b6331ec4ee..9fe8c7e66d 100644 --- a/router/src/components/redirect.rs +++ b/router/src/components/redirect.rs @@ -33,7 +33,7 @@ where { // resolve relative path let path = use_resolved_path(cx, move || path.to_string()); - let path = path.get().unwrap_or_else(|| "/".to_string()); + let path = path.get_untracked().unwrap_or_else(|| "/".to_string()); // redirect on the server if let Some(redirect_fn) = use_context::(cx) {