Skip to content

Commit 4a45c06

Browse files
committed
cleanup
1 parent db78d61 commit 4a45c06

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/router-core/src/router.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,12 +2844,10 @@ export class RouterCore<
28442844
const match = this.getMatch(matchId)!
28452845
match._nonReactive.loaderPromise = createControlledPromise<void>()
28462846
if (nextPreload !== match.preload) {
2847-
innerLoadContext.updateMatch(matchId, (prev) => {
2848-
return {
2849-
...prev,
2850-
preload: nextPreload,
2851-
}
2852-
})
2847+
innerLoadContext.updateMatch(matchId, (prev) => ({
2848+
...prev,
2849+
preload: nextPreload,
2850+
}))
28532851
}
28542852

28552853
// If the route is successful and still fresh, just resolve

0 commit comments

Comments
 (0)