Skip to content

Commit

Permalink
fix(angular): setup config properly (#24028)
Browse files Browse the repository at this point in the history
fix view stacks
  • Loading branch information
liamdebeasi committed Oct 11, 2021
1 parent 623cdd7 commit 95bf24f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/vue-router/src/viewStacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,10 @@ export const createViewStacks = (router: Router) => {
const viewStack = viewStacks[outletId];
if (!viewStack) return;

const { enteringIndex: endIndex, leavingIndex: startIndex } = findViewIndex(viewStack, enteringViewItem, leavingViewItem);
let mountDiff = delta - 1;
const { leavingIndex: startIndex } = findViewIndex(viewStack, enteringViewItem, leavingViewItem);

for (let i = startIndex + 1; i < endIndex; i++) {
for (let i = startIndex + 1; i < startIndex + delta; i++) {
viewStack[i].mount = true;

mountDiff -= 1;

if (mountDiff === 0) {
return;
}
}
}

Expand Down

0 comments on commit 95bf24f

Please sign in to comment.