Skip to content

Commit 02019f1

Browse files
authored
refactor(router-core): executeBeforeLoad remove dead code (#6517)
1 parent c16571a commit 02019f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/router-core/src/load-matches.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@ const executeBeforeLoad = (
389389

390390
const abortController = new AbortController()
391391

392-
const parentMatchId = inner.matches[index - 1]?.id
393-
const parentMatch = parentMatchId
394-
? inner.router.getMatch(parentMatchId)!
395-
: undefined
396-
const parentMatchContext =
397-
parentMatch?.context ?? inner.router.options.context ?? undefined
398-
399392
let isPending = false
400393
const pending = () => {
401394
if (isPending) return

0 commit comments

Comments
 (0)