Feat: remove generic paramter on VDOM
This makes storage of VDoms easier, and removes static dispatch on any function that relies on VDOMs.
This commit is contained in:
1 parent
4bbc5af6e1
commit
4c291a0efd
8 files changed
+113
-75
No files matched your search
@@ -5,12 +5,12 @@
|
||||
|
||||
use crate::prelude::{Properties, VirtualDom};
|
||||
|
||||
pub struct DebugRenderer<'a, P: Properties> {
|
||||
vdom: &'a mut VirtualDom<P>,
|
||||
pub struct DebugRenderer {
|
||||
vdom: VirtualDom,
|
||||
}
|
||||
|
||||
impl<'a, P: Properties> DebugRenderer<'a, P> {
|
||||
pub fn new(vdom: &'a mut VirtualDom<P>) -> Self {
|
||||
impl DebugRenderer {
|
||||
pub fn new(vdom: VirtualDom) -> Self {
|
||||
Self { vdom }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user