Set the console error panic hook
Turn on the browser console panic message output provided by the `console_error_panic_hook` feature. This feature was already enabled by default in our Cargo configuration, but it wasn't actually being used.
This commit is contained in:
parent
2c55a63a6f
commit
7aa69bdfcd
@ -46,6 +46,10 @@ impl AppState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// set the console error panic hook
|
||||||
|
#[cfg(feature = "console_error_panic_hook")]
|
||||||
|
console_error_panic_hook::set_once();
|
||||||
|
|
||||||
sycamore::render(|| {
|
sycamore::render(|| {
|
||||||
provide_context(AppState::new());
|
provide_context(AppState::new());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user