Skip to content

Commit

Permalink
feat: condense Router/Routes base prop into one (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Oct 11, 2024
1 parent 7585faf commit f0cd0fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions router/src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ where
base.upgrade_inplace();
base
});
let routes = Routes::new(children.into_inner());
let routes = Routes::new_with_base(
children.into_inner(),
base.clone().unwrap_or_default(),
);
let outer_owner =
Owner::current().expect("creating Routes, but no Owner was found");
move || {
Expand Down Expand Up @@ -294,7 +297,10 @@ where
base.upgrade_inplace();
base
});
let routes = Routes::new(children.into_inner());
let routes = Routes::new_with_base(
children.into_inner(),
base.clone().unwrap_or_default(),
);

let outer_owner =
Owner::current().expect("creating Router, but no Owner was found");
Expand Down

0 comments on commit f0cd0fb

Please sign in to comment.