Skip to content

Commit

Permalink
Fix docs for SsrNode
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Jun 25, 2021
1 parent db69e72 commit 7287e6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/sycamore/src/generic_node/ssr_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ static VOID_ELEMENTS: &[&str] = &[
"track", "wbr", "command", "keygen", "menuitem",
];

/// Rendering backend for Server Side Rendering, aka. SSR.
///
/// _This API requires the following crate features to be activated: `ssr`_
/// Inner representation for [`SsrNode`].
#[derive(Debug)]
enum SsrNodeType {
Element(RefCell<Element>),
Expand All @@ -34,6 +32,9 @@ struct SsrNodeInner {
parent: RefCell<Weak<SsrNodeInner>>,
}

/// Rendering backend for Server Side Rendering, aka. SSR.
///
/// _This API requires the following crate features to be activated: `ssr`_
#[derive(Debug, Clone)]
pub struct SsrNode(Rc<SsrNodeInner>);

Expand Down

0 comments on commit 7287e6e

Please sign in to comment.