Expose streaming options to choose between full prerendering and out of order streaming (#3288)

* expose streaming options to choose between full prerendering and out of order streaming

* add examples to streaming_mode
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-12-04 13:25:08 -08:00
1 parent 2db758ad7b
commit 29a7325bb7
6 files changed
+149 -64

No files matched your search

@@ -12,7 +12,11 @@ use dioxus::prelude::*;
use serde::{Deserialize, Serialize};
fn main() {
dioxus::launch(app);
LaunchBuilder::new()
.with_cfg(server_only! {
dioxus::fullstack::ServeConfig::builder().enable_out_of_order_streaming()
})
.launch(app);
}
fn app() -> Element {