Little bit more cleanup in core
This commit is contained in:
2 files changed
+115
-116
No files matched your search
@@ -44,10 +44,6 @@ impl Drop for ScopeState {
|
||||
}
|
||||
|
||||
impl ScopeState {
|
||||
pub(crate) fn context(&self) -> Ref<'_, ScopeContext> {
|
||||
self.runtime.get_context(self.context_id).unwrap()
|
||||
}
|
||||
|
||||
/// Get a handle to the currently active head node arena for this Scope
|
||||
///
|
||||
/// This is useful for traversing the tree outside of the VirtualDom, such as in a custom renderer or in SSR.
|
||||
@@ -66,4 +62,8 @@ impl ScopeState {
|
||||
pub fn try_root_node(&self) -> Option<&RenderReturn> {
|
||||
self.last_rendered_node.as_ref()
|
||||
}
|
||||
|
||||
pub(crate) fn context(&self) -> Ref<'_, ScopeContext> {
|
||||
self.runtime.get_context(self.context_id).unwrap()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user