From 9af8012e82d09e6bd4bea2dc5b05afa24fb09b48 Mon Sep 17 00:00:00 2001 From: WorldSEnder Date: Tue, 12 Apr 2022 02:20:44 +0200 Subject: [PATCH] add comments --- packages/yew/src/dom_bundle/bcomp.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/yew/src/dom_bundle/bcomp.rs b/packages/yew/src/dom_bundle/bcomp.rs index e055d9bdfd4..c749a6428b4 100644 --- a/packages/yew/src/dom_bundle/bcomp.rs +++ b/packages/yew/src/dom_bundle/bcomp.rs @@ -12,8 +12,12 @@ use web_sys::Element; pub(super) struct BComp { type_id: TypeId, scope: Box, - node_ref: NodeRef, + // A internal NodeRef passed around to track this components position. This + // is "stable", i.e. does not change when reconciled. internal_ref: NodeRef, + // The user-passed NodeRef from VComp. Might change every time we reconcile. + // Gets linked to the internal ref + node_ref: NodeRef, key: Option, }