-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
https://dioxuslabs.com/learn/0.7/essentials/basics/error_handling/#downcasting-specific-errors
The example code to downcast an error and rethrow if necessary causes an infinite loop
rsx! {
ErrorBoundary {
handle_error: |error: ErrorContext| {
// Network errors need to be handled by a different error boundary!
if let Some(err) = error.error() {
return Err(e.into())
}
// Otherwise, handle this error here
rsx! {
div { "Oops, we encountered an error" }
}
},
// ...
}
}
- Dioxus version: 0.7.1
- Rust version: 1.91.1
- OS info: WSL2
- App platform: web
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working