Little bit more cleanup in core

This commit is contained in:
Jonathan Kelley committed 2024-01-16 18:07:29 -08:00
1 parent 66ba220265
commit c3d810bcd0
2 files changed
+115 -116

No files matched your search

+4 -4
View File
@@ -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()
}
}