Compare commits

...

2 Commits

Author SHA1 Message Date
Sean Perkins
969cc78b68 chore: use node 18 for publish action 2023-08-31 22:00:04 -04:00
Sean Perkins
64f319903a fix(vue): router replace action uses custom animation 2023-08-31 21:56:38 -04:00
2 changed files with 4 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ runs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
# Provenance requires npm 9.5.0+
- name: Install latest npm
run: npm install -g npm@latest

View File

@@ -400,6 +400,8 @@ export const createIonRouter = (
currentHistoryPosition
);
const routerAnimation = incomingRouteParams.routerAnimation || currentRouteInfo?.routerAnimation || routeInfo.routerAnimation;
/**
* If going from /home to /child, then replacing from
* /child to /home, we don't want the route info to
@@ -417,8 +419,7 @@ export const createIonRouter = (
routeInfo.pushedByRoute = pushedByRoute;
routeInfo.routerDirection =
currentRouteInfo?.routerDirection || routeInfo.routerDirection;
routeInfo.routerAnimation =
currentRouteInfo?.routerAnimation || routeInfo.routerAnimation;
routeInfo.routerAnimation = routerAnimation;
routeInfo.prevRouteLastPathname = currentRouteInfo?.lastPathname;
}
}