Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
This commit is contained in:
1 parent
020c4bf0f8
commit
3b7b503333
44 files changed
+2643
-3134
No files matched your search
@@ -1,8 +1,7 @@
|
||||
use dioxus_core::*;
|
||||
|
||||
use crate::{
|
||||
real_dom::{NodeData, NodeType, OwnedAttributeView},
|
||||
state::union_ordered_iter,
|
||||
RealNodeId,
|
||||
};
|
||||
|
||||
/// A view into a [VNode] with limited access.
|
||||
@@ -22,8 +21,8 @@ impl<'a> NodeView<'a> {
|
||||
}
|
||||
|
||||
/// Get the id of the node
|
||||
pub fn id(&self) -> GlobalNodeId {
|
||||
self.inner.id
|
||||
pub fn id(&self) -> RealNodeId {
|
||||
self.inner.id.unwrap()
|
||||
}
|
||||
|
||||
/// Get the tag of the node if the tag is enabled in the mask
|
||||
|
||||
Reference in new issue
Block a user