show panics in the toast in wasm (#4582)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-08-19 17:13:13 -07:00
1 parent 165447a647
commit 74163984be
7 files changed
+68 -12

No files matched your search

+2
View File
@@ -14,6 +14,7 @@ use wasm_bindgen::JsCast as _;
/// ```
pub struct Config {
pub(crate) hydrate: bool,
pub(crate) panic_hook: bool,
pub(crate) root: ConfigRoot,
#[cfg(feature = "document")]
pub(crate) history: Option<Rc<dyn dioxus_history::History>>,
@@ -96,6 +97,7 @@ impl Default for Config {
root: ConfigRoot::RootName("main".to_string()),
#[cfg(feature = "document")]
history: None,
panic_hook: true,
}
}
}