Almost have new reconciler working, recursion hurts le brain
This commit is contained in:
parent
91266cc841
commit
da96abff6a
10 changed files with 365 additions and 90 deletions
|
|
@ -38,7 +38,7 @@ impl RSX {
|
|||
RSX::VirtualNode(VirtualNode {
|
||||
tag: tag,
|
||||
create_component_fn: create_fn,
|
||||
props: Some(props),
|
||||
props: props,
|
||||
children: children
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
//! Implements a Props struct that mostly acts as expected. For arbitrary primitive values,
|
||||
//! it shadows a `serde_json::Value`.
|
||||
|
||||
use std::sync::{Arc, RwLock};
|
||||
use serde_json::Value;
|
||||
use std::collections::HashMap;
|
||||
|
||||
use alchemy_styles::StylesList;
|
||||
|
||||
use crate::rsx::RSX;
|
||||
use crate::traits::{Component};
|
||||
|
||||
/// A value stored inside the `attributes` field on a `Props` instance.
|
||||
/// It shadows `serde_json::Value`, but also allows for some other value
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ pub struct VirtualNode {
|
|||
/// ownership of a VirtualNode.
|
||||
///
|
||||
/// This aspect of functionality may be pulled in a later release if it causes too many issues.
|
||||
pub props: Option<Props>,
|
||||
pub props: Props,
|
||||
|
||||
///
|
||||
pub children: Vec<RSX>
|
||||
|
|
|
|||
Reference in a new issue