mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: actually concatenate nested routes during route generation
This commit is contained in:
parent
fbc6be922d
commit
0a41ae9a5e
1 changed files with 4 additions and 3 deletions
|
@ -253,14 +253,15 @@ where
|
|||
})),
|
||||
Some(children) => {
|
||||
Either::Right(children.generate_routes().into_iter().map(move |child| {
|
||||
let segments = segment_routes.clone().into_iter().chain(child.segments.into_iter()).collect();
|
||||
if child.ssr_mode > ssr_mode {
|
||||
GeneratedRouteData {
|
||||
segments: child.segments ,
|
||||
segments,
|
||||
ssr_mode: child.ssr_mode,
|
||||
}
|
||||
} else {
|
||||
GeneratedRouteData {
|
||||
segments: child.segments ,
|
||||
segments,
|
||||
ssr_mode,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue