Trim off 150 deps for examples
This commit is contained in:
20 files changed
+297
-641
No files matched your search
@@ -13,7 +13,7 @@ use dioxus::prelude::*;
|
||||
use dioxus_desktop::Config;
|
||||
|
||||
fn main() {
|
||||
LaunchBuilder::new(app)
|
||||
LaunchBuilder::desktop()
|
||||
.cfg(Config::new().with_prerendered({
|
||||
// We build the dom a first time, then pre-render it to HTML
|
||||
let pre_rendered_dom = VirtualDom::prebuilt(app);
|
||||
@@ -21,7 +21,7 @@ fn main() {
|
||||
// We then launch the app with the pre-rendered HTML
|
||||
dioxus_ssr::pre_render(&pre_rendered_dom)
|
||||
}))
|
||||
.launch_desktop();
|
||||
.launch(app)
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
|
||||
Reference in new issue
Block a user