Less clumsy configuration for desktop and mobile (#553)
* chore: dont use prebuilt builder pattern for configuring desktop * chore: use regular config pattern for web * Chore: update docs too * chore: clean up some warnings
This commit is contained in:
1 parent
41b450eedf
commit
540e785d8b
28 files changed
+172
-156
No files matched your search
@@ -1,4 +1,5 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_web::Config;
|
||||
use web_sys::window;
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
@@ -59,5 +60,5 @@ fn main() {
|
||||
.set_inner_html(&pre);
|
||||
|
||||
// now rehydtrate
|
||||
dioxus_web::launch_with_props(app, (), |c| c.hydrate(true));
|
||||
dioxus_web::launch_with_props(app, (), Config::new().hydrate(true));
|
||||
}
|
||||
Reference in new issue
Block a user