Function leptos::ssr::render_to_stream_in_order_with_prefix
source · pub fn render_to_stream_in_order_with_prefix(
view: impl FnOnce(Scope) -> View + 'static,
prefix: impl FnOnce(Scope) -> Cow<'static, str> + 'static
) -> impl Stream<Item = String>Expand description
Renders an in-order HTML stream, pausing at <Suspense/> components. The stream contains,
in order:
prefix- HTML from the
viewin order, pausing to wait for each<Suspense/> - any serialized Resources
additional_context is injected before the view is rendered. The prefix is generated
after the view is rendered, but before <Suspense/> nodes have resolved.