Skip to content

Commit

Permalink
fix(react-router): avoid multiple load calls on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
freshgiammi committed Jun 11, 2024
1 parent c05e6f3 commit e98498c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/react-router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,6 @@ export class Router<
redirect = err
if (!this.isServer) {
this.navigate({ ...err, replace: true, __isRedirect: true })
this.load()
}
} else if (isNotFound(err)) {
notFound = err
Expand Down

0 comments on commit e98498c

Please sign in to comment.