Skip to content

Commit

Permalink
chore: remove unused parameter (#2326)
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel committed Sep 12, 2024
1 parent f3e8c9d commit 7c1ff9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/react-router/src/RouterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export type NavigateFn = <
TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom,
TMaskTo extends string = '',
>(
opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
__isRedirect?: boolean
},
opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>,
) => Promise<void>

export type BuildLocationFn = <
Expand Down
3 changes: 1 addition & 2 deletions packages/react-router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ export class Router<
})
}

navigate: NavigateFn = ({ to, __isRedirect, ...rest }) => {
navigate: NavigateFn = ({ to, ...rest }) => {
// If this link simply reloads the current route,
// make sure it has a new key so it will trigger a data refresh

Expand Down Expand Up @@ -1770,7 +1770,6 @@ export class Router<
this.navigate({
...err,
replace: true,
__isRedirect: true,
ignoreBlocker: true,
})
}
Expand Down

0 comments on commit 7c1ff9b

Please sign in to comment.