mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
printing html as it is being streamed to client
This commit is contained in:
parent
d79d4c4f86
commit
9d370776d2
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ async fn main() -> std::io::Result<()> {
|
|||
|cx| view! { cx, <App/> }.into_view(cx),
|
||||
))
|
||||
.chain(futures::stream::once(async { tail.to_string() }))
|
||||
.inspect(|html| println!("{html}"))
|
||||
.map(|html| Ok(web::Bytes::from(html)) as Result<web::Bytes>),
|
||||
)})
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue