Almost have new reconciler working, recursion hurts le brain

This commit is contained in:
Ryan McGrath 2019-05-28 01:52:36 -07:00
parent 91266cc841
commit da96abff6a
No known key found for this signature in database
GPG key ID: 811674B62B666830
10 changed files with 365 additions and 90 deletions

View file

@ -38,7 +38,7 @@ impl RSX {
RSX::VirtualNode(VirtualNode {
tag: tag,
create_component_fn: create_fn,
props: Some(props),
props: props,
children: children
})
}

View file

@ -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

View file

@ -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>