change router to use option again

This commit is contained in:
Adrian Wannenmacher committed 2022-12-23 18:55:03 +01:00
1 parent dbbfdefc21
commit f1cbfe0874
7 files changed
+14 -25

No files matched your search

@@ -64,7 +64,7 @@ pub fn GoBackButton<'a>(cx: Scope<'a, HistoryButtonProps<'a>>) -> Element {
error!("{msg}, will be inactive");
#[cfg(debug_assertions)]
panic!("{}", msg);
anyhow::bail!("{msg}");
return None;
}
};
let state = loop {
@@ -139,7 +139,7 @@ pub fn GoForwardButton<'a>(cx: Scope<'a, HistoryButtonProps<'a>>) -> Element {
error!("{msg}, will be inactive");
#[cfg(debug_assertions)]
panic!("{}", msg);
anyhow::bail!("{msg}");
return None;
}
};
let state = loop {
+1 -1
View File
@@ -122,7 +122,7 @@ pub fn Link<'a>(cx: Scope<'a, LinkProps<'a>>) -> Element {
error!("{msg}, will be inactive");
#[cfg(debug_assertions)]
panic!("{}", msg);
anyhow::bail!("{msg}");
return None;
}
};
let state = loop {
+1 -1
View File
@@ -77,7 +77,7 @@ pub fn Outlet(cx: Scope<OutletProps>) -> Element {
error!("{msg}, will be inactive");
#[cfg(debug_assertions)]
panic!("{}", msg);
anyhow::bail!("{msg}");
return None;
}
};
let state = loop {