From eca89a38bff30230dce590191e80a6922fd34ade Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Thu, 29 Jun 2023 11:22:08 -0400 Subject: [PATCH] chore: add location history when IonRouter first renders --- packages/react-router/src/ReactRouter/IonRouter.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-router/src/ReactRouter/IonRouter.tsx b/packages/react-router/src/ReactRouter/IonRouter.tsx index 1a876aaf47..14cd3ab55c 100644 --- a/packages/react-router/src/ReactRouter/IonRouter.tsx +++ b/packages/react-router/src/ReactRouter/IonRouter.tsx @@ -34,6 +34,8 @@ function IonRouterInner(props: PropsWithChildren) { search: location.search, }; + locationHistory.current.add(routeInfo); + setRouteInfo(routeInfo); }, []);