|
@@ -60,6 +60,8 @@ pub struct VirtualDom {
|
|
|
|
|
|
pub tasks: TaskQueue,
|
|
pub tasks: TaskQueue,
|
|
|
|
|
|
|
|
+ heuristics: HeuristicsEngine,
|
|
|
|
+
|
|
root_props: std::pin::Pin<Box<dyn std::any::Any>>,
|
|
root_props: std::pin::Pin<Box<dyn std::any::Any>>,
|
|
|
|
|
|
/// Type of the original props. This is stored as TypeId so VirtualDom does not need to be generic.
|
|
/// Type of the original props. This is stored as TypeId so VirtualDom does not need to be generic.
|
|
@@ -168,6 +170,7 @@ impl VirtualDom {
|
|
components,
|
|
components,
|
|
root_props,
|
|
root_props,
|
|
tasks,
|
|
tasks,
|
|
|
|
+ heuristics: HeuristicsEngine::new(),
|
|
triggers: Default::default(),
|
|
triggers: Default::default(),
|
|
_root_prop_type: TypeId::of::<P>(),
|
|
_root_prop_type: TypeId::of::<P>(),
|
|
}
|
|
}
|