mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
fix: avoid name conflict between lazy route struct type and split view function
This commit is contained in:
@@ -234,7 +234,8 @@ fn lazy_route_impl(
|
||||
}) => segments.last().unwrap().ident.to_string(),
|
||||
_ => abort!(self_ty.span(), "only path types are supported"),
|
||||
};
|
||||
let lazy_view_ident = Ident::new(&ty_name_to_snake, im.self_ty.span());
|
||||
let lazy_view_ident =
|
||||
Ident::new(&format!("__{ty_name_to_snake}_View"), im.self_ty.span());
|
||||
let preload_lazy_view_ident = Ident::new(
|
||||
&format!("__preload_{lazy_view_ident}"),
|
||||
lazy_view_ident.span(),
|
||||
|
||||
Reference in New Issue
Block a user