fix hydration

This commit is contained in:
Evan Almloff committed 2024-01-18 10:47:10 -06:00
1 parent d20422bb0f
commit 694bef0d93
8 files changed
+76 -21

No files matched your search

-2
View File
@@ -8,7 +8,6 @@
/// dioxus_web::launch(App, Config::new().hydrate(true).root_name("myroot"))
/// ```
pub struct Config {
#[cfg(feature = "hydrate")]
pub(crate) hydrate: bool,
pub(crate) rootname: String,
pub(crate) default_panic_hook: bool,
@@ -17,7 +16,6 @@ pub struct Config {
impl Default for Config {
fn default() -> Self {
Self {
#[cfg(feature = "hydrate")]
hydrate: false,
rootname: "main".to_string(),
default_panic_hook: true,