dioxus_router/components/
default_errors.rs1#[allow(deprecated)]
2use crate::hooks::use_router;
3use dioxus_lib::prelude::*;
4
5#[allow(non_snake_case)]
7pub fn FailureExternalNavigation() -> Element {
8 #[allow(deprecated)]
9 let router = use_router();
10
11 rsx! {
12 h1 { "External Navigation Failure!" }
13 p {
14 "The application tried to programmatically navigate to an external page. This "
15 "operation has failed. Click the link below to complete the navigation manually."
16 }
17 a { onclick: move |_| { router.clear_error() }, "Click here to go back" }
18 }
19}