mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
hydrate lazy islands in correct order
This commit is contained in:
@@ -552,10 +552,13 @@ impl ToTokens for Model {
|
||||
#hydrate_fn_inner
|
||||
}
|
||||
|
||||
#[::leptos::wasm_bindgen::prelude::wasm_bindgen(wasm_bindgen = ::leptos::wasm_bindgen)]
|
||||
#[::leptos::wasm_bindgen::prelude::wasm_bindgen(
|
||||
wasm_bindgen = ::leptos::wasm_bindgen,
|
||||
wasm_bindgen_futures = ::leptos::__reexports::wasm_bindgen_futures
|
||||
)]
|
||||
#[allow(non_snake_case)]
|
||||
pub fn #hydrate_fn_name(el: ::leptos::web_sys::HtmlElement) {
|
||||
::leptos::task::spawn_local(#outer_name(el))
|
||||
pub async fn #hydrate_fn_name(el: ::leptos::web_sys::HtmlElement) {
|
||||
#outer_name(el).await
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user