Skip to content

Commit ed42f6f

Browse files
committed
reduce diff load-matches
1 parent 84c88c2 commit ed42f6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,9 @@ const executeBeforeLoad = (
450450

451451
batch(() => {
452452
pending()
453-
const match = inner.router.getMatch(matchId)
454-
if (match) {
455-
match.__beforeLoadContext = beforeLoadContext
456-
}
457453
inner.updateMatch(matchId, (prev) => ({
458454
...prev,
455+
__beforeLoadContext: beforeLoadContext,
459456
context: {
460457
...prev.context,
461458
...beforeLoadContext,

0 commit comments

Comments
 (0)