mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
feat: add console_error_panic_hook
This commit is contained in:
parent
a242b307af
commit
68659411b9
2 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,9 @@ chrono = "0.4.33"
|
||||||
cfg-if = "1.0.0"
|
cfg-if = "1.0.0"
|
||||||
# leptos-use = "0.10.10"
|
# leptos-use = "0.10.10"
|
||||||
send_wrapper = "0.6"
|
send_wrapper = "0.6"
|
||||||
|
console_error_panic_hook = "0.1.7"
|
||||||
|
console_log = "1"
|
||||||
|
log = "0.4"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["csr"]
|
default = ["csr"]
|
||||||
|
|
|
@ -6,5 +6,8 @@ use app::App;
|
||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
let _ = console_log::init_with_level(log::Level::Debug);
|
||||||
|
console_error_panic_hook::set_once();
|
||||||
|
|
||||||
mount_to_body(App)
|
mount_to_body(App)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue