chore: add location history when IonRouter first renders

This commit is contained in:
Sean Perkins
2023-06-29 11:22:08 -04:00
parent b907726bbd
commit eca89a38bf

View File

@@ -34,6 +34,8 @@ function IonRouterInner(props: PropsWithChildren<any>) {
search: location.search,
};
locationHistory.current.add(routeInfo);
setRouteInfo(routeInfo);
}, []);