Make deprecated use router (#1260)

* make router props expansion better

* fix router data fields

* make a deprecated use_router hook
This commit is contained in:
ealmloff authored and GitHub committed 2023-07-27 10:32:23 -07:00
1 parent 5e3451a6f2
commit cfd62e274e
12 files changed
+82 -149

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ where
/// Defaults to [`None`].
pub fn on_update(
self,
callback: impl Fn(LinkContext<R>) -> Option<NavigationTarget<R>> + 'static,
callback: impl Fn(GenericRouterContext<R>) -> Option<NavigationTarget<R>> + 'static,
) -> Self {
Self {
on_update: Some(Arc::new(callback)),