From 67a0dc6e462bdd3f616e081161ef499a35fe07d7 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Fri, 24 May 2019 21:57:37 -0700 Subject: [PATCH] More README formatting --- README.md | 4 +--- alchemy/src/reconciler.rs | 9 +++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1a0659e..50feb6f 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,7 @@ Alchemy - A Rust GUI Framework [![Gitter](https://badges.gitter.im/alchemy-rs/alchemy.svg)](https://gitter.im/alchemy-rs/alchemy) [![Crates.io](https://img.shields.io/crates/v/alchemy.svg)](https://crates.io/crates/alchemy) -API Documentation: [latest release](https://docs.rs/alchemy) – [trunk branch](https://docs.alchemy.rs) - -[Homepage](https://alchemy.rs) +[Homepage](https://alchemy.rs) • [API Documentation](https://docs.rs/alchemy/) Alchemy is a Rust GUI Framework, backed by native widgets on each platform it supports, with an API that's a blend of those found in AppKit, UIKit, and React Native. It aims to provide an API that feels at home in Rust, while striving to provide a visual appearance that's easy to scan and parse. It does not, and will never, require nightly. It's still early stages, but feedback and contributions are welcome. diff --git a/alchemy/src/reconciler.rs b/alchemy/src/reconciler.rs index 693577b..d1886da 100644 --- a/alchemy/src/reconciler.rs +++ b/alchemy/src/reconciler.rs @@ -218,6 +218,8 @@ fn find_and_link_layout_nodes(parent_node: &mut VirtualNode, child_tree: &mut Vi /// Recursively constructs a Component tree. This entails adding it to the backing /// view tree, firing various lifecycle methods, and ensuring that nodes for layout /// passes are configured. +/// +/// In the future, this would ideally return patch-sets for the backing layer or something. fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> Result> { let instance = (new_element.create_component_fn)(); @@ -239,7 +241,9 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> component.render(&new_element.props) }; - + + // instance.get_snapshot_before_update() + new_element.instance = Some(instance); let mut children = match rendered { @@ -298,9 +302,6 @@ fn mount_component_tree(mut new_element: VirtualNode, stretch: &mut Stretch) -> component.component_did_mount(&new_element.props); } - // instance.get_snapshot_before_update() - //renderer.component_did_mount(&new_element.props); - Ok(new_element) }