pub fn render_app_to_stream_with_context_and_replace_blocks<IV>(
    options: LeptosOptions,
    additional_context: impl Fn() + 'static + Clone + Send,
    app_fn: impl Fn() -> IV + Clone + 'static,
    method: Method,
    replace_blocks: bool
) -> Route
where IV: IntoView,
Expand description

Returns an Actix struct@Route that listens for a GET request and tries to route it using leptos_router, serving an HTML stream of your application.

This function allows you to provide additional information to Leptos for your route. It could be used to pass in Path Info, Connection Info, or anything your heart desires.

replace_blocks additionally lets you specify whether <Suspense/> fragments that read from blocking resources should be retrojected into the HTML that’s initially served, rather than dynamically inserting them with JavaScript on the client. This means you will have better support if JavaScript is not enabled, in exchange for a marginally slower response time.

§Provided Context Types

This function always provides context values including the following types: