bump the sledgehammer bindgen version
This commit is contained in:
1 parent
c0f2e8391c
commit
93ee53454f
12 files changed
+249
-150
No files matched your search
@@ -110,6 +110,7 @@ impl WebsysDom {
|
||||
}));
|
||||
|
||||
dioxus_interpreter_js::initialize(
|
||||
interpreter.js_channel(),
|
||||
root.clone().unchecked_into(),
|
||||
handler.as_ref().unchecked_ref(),
|
||||
);
|
||||
|
||||
@@ -62,7 +62,7 @@ impl WebsysDom {
|
||||
// Now that we've flushed the edits and the dom nodes exist, we can send the mounted events.
|
||||
{
|
||||
for id in self.queued_mounted_events.drain(..) {
|
||||
let node = get_node(id.0 as u32);
|
||||
let node = get_node(self.interpreter.js_channel(), id.0 as u32);
|
||||
if let Some(element) = node.dyn_ref::<web_sys::Element>() {
|
||||
let _ = self.event_channel.unbounded_send(UiEvent {
|
||||
name: "mounted".to_string(),
|
||||
@@ -91,7 +91,7 @@ impl WriteMutations for WebsysDom {
|
||||
|
||||
self.templates
|
||||
.insert(template.name.to_owned(), self.max_template_id);
|
||||
save_template(roots, self.max_template_id);
|
||||
save_template(self.interpreter.js_channel(), roots, self.max_template_id);
|
||||
self.max_template_id += 1
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ impl WebsysDom {
|
||||
// Recursively rehydrate the dom from the VirtualDom
|
||||
self.rehydrate_scope(root_scope, dom, &mut ids, &mut to_mount)?;
|
||||
|
||||
dioxus_interpreter_js::hydrate(ids);
|
||||
dioxus_interpreter_js::hydrate(self.interpreter.js_channel(), ids);
|
||||
|
||||
#[cfg(feature = "mounted")]
|
||||
for id in to_mount {
|
||||
@@ -168,7 +168,11 @@ impl WriteMutations for OnlyWriteTemplates<'_> {
|
||||
self.0
|
||||
.templates
|
||||
.insert(template.name.to_owned(), self.0.max_template_id);
|
||||
save_template(roots, self.0.max_template_id);
|
||||
save_template(
|
||||
self.0.interpreter.js_channel(),
|
||||
roots,
|
||||
self.0.max_template_id,
|
||||
);
|
||||
self.0.max_template_id += 1
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user