Skip to content

Commit

Permalink
fix: untracked read in <Redirect/> (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Jul 4, 2023
1 parent d81c1a9 commit 39edb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/src/components/redirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<ServerRedirectFunction>(cx) {
Expand Down

0 comments on commit 39edb6e

Please sign in to comment.