Skip to content

Commit 87bd969

Browse files
fix(history): remove uncalled splice expression in createMemoryHistory (#2439)
1 parent 016393b commit 87bd969

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/history/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ export function createMemoryHistory(
371371

372372
pushState: (path, state) => {
373373
currentState = state
374-
entries.splice
375374
// Removes all subsequent entries after the current index to start a new branch
376375
if (index < entries.length - 1) {
377376
entries.splice(index + 1)

0 commit comments

Comments
 (0)