wip: clean up some things
This commit is contained in:
1 parent
ba26b1001a
commit
3b166c9edd
64 files changed
+540
-599
No files matched your search
@@ -67,7 +67,7 @@ impl<S: State> RealDom<S> {
|
||||
let mut nodes_updated = Vec::new();
|
||||
nodes_updated.push((RealNodeId::ElementId(ElementId(0)), NodeMask::ALL));
|
||||
for mutations in mutations_vec {
|
||||
for e in mutations.edits {
|
||||
for e in mutations.dom_edits {
|
||||
use dioxus_core::DomEdit::*;
|
||||
match e {
|
||||
AppendChildren { root, children } => {
|
||||
|
||||
@@ -72,7 +72,7 @@ impl PersistantElementIter {
|
||||
pub fn prune<S: State>(&mut self, mutations: &Mutations, rdom: &RealDom<S>) -> bool {
|
||||
let mut changed = false;
|
||||
let ids_removed: Vec<_> = mutations
|
||||
.edits
|
||||
.dom_edits
|
||||
.iter()
|
||||
.filter_map(|e| {
|
||||
// nodes within templates will never be removed
|
||||
@@ -97,7 +97,7 @@ impl PersistantElementIter {
|
||||
for (el_id, child_idx) in self.stack.iter_mut() {
|
||||
if let NodePosition::InChild(child_idx) = child_idx {
|
||||
if let NodeType::Element { children, .. } = &rdom[*el_id].node_data.node_type {
|
||||
for m in &mutations.edits {
|
||||
for m in &mutations.dom_edits {
|
||||
match m {
|
||||
DomEdit::Remove { root } => {
|
||||
let id = rdom.resolve_maybe_id(*root);
|
||||
|
||||
Reference in new issue
Block a user