Slight tweak to how gets created on demand. We use an now, for mutability/immutability needs in the reconciliation process. Not sure offhand how much the double lock of will affect things, but that's a problem for later.
This commit is contained in:
parent
4bf89f5d91
commit
c7ef19a943
8 changed files with 53 additions and 43 deletions
|
|
@ -220,7 +220,9 @@ impl Element {
|
|||
let component_name = Literal::string(&typename.to_string());
|
||||
|
||||
Ok(quote!(
|
||||
alchemy::RSX::node(#component_name, || Box::new(#typename::default()), alchemy::Props {
|
||||
alchemy::RSX::node(#component_name, || {
|
||||
std::sync::Arc::new(std::sync::RwLock::new(#typename::default()))
|
||||
}, alchemy::Props {
|
||||
attributes: {
|
||||
let mut attributes = std::collections::HashMap::new();
|
||||
#attributes
|
||||
|
|
|
|||
Reference in a new issue