Skip to content

feat: add console_error_panic_hook to Rust templates - #649

Merged
amrbashir merged 3 commits into
tauri-apps:devfrom
PierreV23:dev
Mar 26, 2024
Merged

feat: add console_error_panic_hook to Rust templates#649
amrbashir merged 3 commits into
tauri-apps:devfrom
PierreV23:dev

Conversation

@PierreV23

Copy link
Copy Markdown
Contributor

Using console_error_panic_hook allows for easier debugging, as it allows you to see the error message when something panics.

@PierreV23

Copy link
Copy Markdown
Contributor Author

I do want to note that this only hooks the first time. Broader usage here: https://docs.rs/console_error_panic_hook/latest/console_error_panic_hook/index.html

@amrbashir amrbashir changed the title feat: Add console_error_panic_hook to Leptos template for easier panic reading in the dev console. feat: add console_error_panic_hook to Rust templates Mar 26, 2024
@amrbashir
amrbashir merged commit 9f202d7 into tauri-apps:dev Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants