fix lazy_route

This commit is contained in:
Greg Johnston
2025-07-11 10:53:30 -04:00
parent 0d853fdb74
commit 0ca8d32805

View File

@@ -249,7 +249,7 @@ fn lazy_route_impl(
Some(fun) => {
let body = fun.block.clone();
let new_block = quote! {{
#[cfg_attr(feature = "split", wasm_split::wasm_split(#lazy_view_ident))]
#[::leptos::lazy(#lazy_view_ident)]
async fn view(this: #self_ty) -> ::leptos::prelude::AnyView {
#body
}