Struct sycamore_router::StaticRouter [−][src]
pub struct StaticRouter<G: GenericNode, R, F> { /* fields omitted */ }
Expand description
A router that only renders once with the given route
.
This is useful for SSR where we want the HTML to be rendered instantly instead of waiting for the route preload to finish loading.
Trait Implementations
impl<G: GenericNode, R, F> Component<G> for StaticRouter<G, R, F> where
R: Route + 'static,
F: Fn(R) -> Template<G> + 'static,
impl<G: GenericNode, R, F> Component<G> for StaticRouter<G, R, F> where
R: Route + 'static,
F: Fn(R) -> Template<G> + 'static,
The name of the component (for use in debug mode). In release mode, this will default to
"UnnamedComponent"
Read more
type Props = StaticRouterProps<R, F, G>
type Props = StaticRouterProps<R, F, G>
The type of the properties passed to the component.
Create a new component with an instance of the properties. Read more