From 4062e232d9accffd6de67d5ed0acccd1b30001c8 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 1 Aug 2023 10:21:16 -0700 Subject: [PATCH] fix navigator --- packages/router/src/contexts/router.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/contexts/router.rs b/packages/router/src/contexts/router.rs index e13d1cc20..5a9a3f0c4 100644 --- a/packages/router/src/contexts/router.rs +++ b/packages/router/src/contexts/router.rs @@ -178,7 +178,7 @@ impl RouterContext { match target { NavigationTarget::Internal(p) => { let mut state = self.state_mut(); - state.history.push(Rc::new(p)) + state.history.push(p) } NavigationTarget::External(e) => return self.external(e), } @@ -195,7 +195,7 @@ impl RouterContext { { let mut state = self.state_mut(); match target { - NavigationTarget::Internal(p) => state.history.replace(Rc::new(p)), + NavigationTarget::Internal(p) => state.history.replace(p), NavigationTarget::External(e) => return self.external(e), } }