wip: remove resource pool in favor of raw ptrs

This commit is contained in:
Jonathan Kelley committed 2021-11-05 17:15:59 -04:00
1 parent 70b983d090
commit b8d98698c6
6 files changed
+150 -90

No files matched your search

+2 -2
View File
@@ -157,7 +157,7 @@ impl<'src> VNode<'src> {
pub fn children(&self) -> &[VNode<'src>] {
match &self {
VNode::Fragment(f) => &f.children,
VNode::Component(c) => &c.children,
VNode::Component(c) => todo!("children are not accessible through this"),
_ => &[],
}
}
@@ -319,7 +319,7 @@ pub struct Listener<'bump> {
pub struct VComponent<'src> {
pub key: Option<&'src str>,
pub associated_scope: Cell<Option<ScopeId>>,
pub associated_scope: Cell<Option<*mut ScopeInner>>,
// Function pointer to the FC that was used to generate this component
pub user_fc: *const (),