mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore: add location history when IonRouter first renders
This commit is contained in:
@@ -34,6 +34,8 @@ function IonRouterInner(props: PropsWithChildren<any>) {
|
||||
search: location.search,
|
||||
};
|
||||
|
||||
locationHistory.current.add(routeInfo);
|
||||
|
||||
setRouteInfo(routeInfo);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user