Function leptos_actix::render_app_async_with_context
source · pub fn render_app_async_with_context<IV>(
options: LeptosOptions,
additional_context: impl Fn() + 'static + Clone + Send,
app_fn: impl Fn() -> IV + Clone + 'static,
method: Method
) -> Routewhere
IV: IntoView,
Expand description
Returns an Actix struct@Route that listens for a GET
request and tries
to route it using leptos_router, asynchronously serving the page once all async
Resources have loaded.
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.
§Provided Context Types
This function always provides context values including the following types: