Skip to content

Commit db78d61

Browse files
committed
cleanup
1 parent 05b5122 commit db78d61

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/router-core/src/router.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,13 +2904,11 @@ export class RouterCore<
29042904
match._nonReactive.dehydrated = undefined
29052905
const nextIsFetching = loaderIsRunningAsync ? match.isFetching : false
29062906
if (nextIsFetching !== match.isFetching || match.invalid !== false) {
2907-
innerLoadContext.updateMatch(matchId, (prev) => {
2908-
return {
2909-
...prev,
2910-
isFetching: nextIsFetching,
2911-
invalid: false,
2912-
}
2913-
})
2907+
innerLoadContext.updateMatch(matchId, (prev) => ({
2908+
...prev,
2909+
isFetching: nextIsFetching,
2910+
invalid: false,
2911+
}))
29142912
}
29152913
return this.getMatch(matchId)!
29162914
}

0 commit comments

Comments
 (0)