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:
1 parent
2db758ad7b
commit
29a7325bb7
6 files changed
+149
-64
No files matched your search
@@ -17,7 +17,11 @@ fn main() {
|
||||
#[cfg(feature = "server")]
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
dioxus::launch(|| rsx! { Router::<Route> {} });
|
||||
LaunchBuilder::new()
|
||||
.with_cfg(server_only! {
|
||||
dioxus::fullstack::ServeConfig::builder().enable_out_of_order_streaming()
|
||||
})
|
||||
.launch(|| rsx! { Router::<Route> {} });
|
||||
}
|
||||
|
||||
#[derive(Clone, Routable)]
|
||||
|
||||
Reference in new issue
Block a user