fix: specify path to wasm_bindgen in island macro (#2387)

This commit is contained in:
Baptiste 2024-03-01 16:15:19 +01:00 committed by GitHub
parent 59d3cce3be
commit 5b40881e77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -447,7 +447,7 @@ impl ToTokens for Model {
};
quote! {
#[::leptos::wasm_bindgen::prelude::wasm_bindgen]
#[::leptos::wasm_bindgen::prelude::wasm_bindgen(wasm_bindgen = ::leptos::wasm_bindgen)]
#[allow(non_snake_case)]
pub fn #hydrate_fn_name(el: ::leptos::web_sys::HtmlElement) {
if let Some(Ok(key)) = el.dataset().get(::leptos::wasm_bindgen::intern("hkc")).map(|key| std::str::FromStr::from_str(&key)) {