mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
fix lazy_route
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user