feat: bless up, no more segfaults

This commit is contained in:
Jonathan Kelley committed 2021-07-26 12:14:48 -04:00
1 parent 7dfe89c958
commit 4a0068f099
14 files changed
+548 -274

No files matched your search

+2 -3
View File
@@ -5,9 +5,8 @@ use std::{
any::{Any, TypeId},
cell::{Cell, RefCell},
future::Future,
marker::PhantomData,
ops::Deref,
rc::{Rc, Weak},
rc::Rc,
};
/// Components in Dioxus use the "Context" object to interact with their lifecycle.
@@ -98,7 +97,7 @@ impl<'src, P> Context<'src, P> {
/// })
/// }
/// ```
pub fn children(&self) -> &'src [VNode<'src>] {
pub fn children(&self) -> ScopeChildren<'src> {
self.scope.child_nodes()
}