Skip to content

Commit aff2165

Browse files
committed
fix: refactor mistake
1 parent e5ea81e commit aff2165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ export function experimental_createRouter(
870870
return pushWithRedirect(
871871
{
872872
// @ts-expect-error: FIXME: refactor location types
873-
...resolve(shouldRedirect, currentRoute.value),
873+
...resolve(failure.to, currentRoute.value),
874874
state:
875875
typeof failure.to === 'object'
876876
? assign({}, data, failure.to.state)

0 commit comments

Comments
 (0)