Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder committed Apr 12, 2022
1 parent e8767e8 commit 9af8012
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/yew/src/dom_bundle/bcomp.rs
Expand Up @@ -12,8 +12,12 @@ use web_sys::Element;
pub(super) struct BComp {
type_id: TypeId,
scope: Box<dyn Scoped>,
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<Key>,
}

Expand Down

0 comments on commit 9af8012

Please sign in to comment.