Function sycamore_router::StaticRouter
source · [−]pub fn StaticRouter<'a, G: Html, R, F>(
ctx: ScopeRef<'a>,
props: StaticRouterProps<'a, R, F, G>
) -> View<G> where
R: Route + 'static,
F: Fn(ScopeRef<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
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.