fix web history

This commit is contained in:
Evan Almloff committed 2023-05-23 11:58:12 -05:00
1 parent b91fb39142
commit dd48c5a163
5 files changed
+45 -15

No files matched your search

+1 -4
View File
@@ -3,7 +3,6 @@ use log::error;
use std::{cell::RefCell, str::FromStr};
use crate::{
history::HistoryProvider,
prelude::{outlet::OutletContext, RouterContext},
routable::Routable,
router_cfg::RouterConfiguration,
@@ -26,9 +25,7 @@ impl<R: Routable> PartialEq for RouterProps<R> {
}
/// A component that renders the current route.
pub fn Router<R: Routable + Clone, H: HistoryProvider<R> + Default + 'static>(
cx: Scope<RouterProps<R>>,
) -> Element
pub fn Router<R: Routable + Clone>(cx: Scope<RouterProps<R>>) -> Element
where
<R as FromStr>::Err: std::fmt::Display,
{