fix(vue): replacing routes now updates location state correctly (#24721)

resolves #24432

Co-authored-by: tigohenryschultz <tigohenryschultz@users.noreply.github.com>
Co-authored-by: yoyo930021 <yoyo930021@users.noreply.github.com>
This commit is contained in:
Liam DeBeasi
2022-02-07 15:37:43 -05:00
committed by GitHub
parent 8c22646d66
commit 721a461073
6 changed files with 72 additions and 13 deletions

View File

@ -134,7 +134,6 @@ export const createLocationHistory = () => {
const index = currentHistory - initialHistory;
return locationHistory[index] || last();
}
const previous = () => locationHistory[locationHistory.length - 2] || last();
const last = () => locationHistory[locationHistory.length - 1];
/**
@ -210,7 +209,6 @@ export const createLocationHistory = () => {
current,
size,
last,
previous,
add,
canGoBack,
update,