Function StaticRouter

Source
pub fn StaticRouter<R, F>(props: StaticRouterProps<R, F>) -> View
where R: Route + 'static, F: Fn(ReadSignal<R>) -> View + 'static,
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.