Skip to content

Commit

Permalink
feat: at /settings/ throw the redirect from the beforeLoad instead …
Browse files Browse the repository at this point in the history
…of the `loader`
  • Loading branch information
SeanCassiere committed Aug 2, 2024
1 parent 964d0e5 commit 5dcf827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/_auth/(settings)/settings.index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createFileRoute, redirect } from "@tanstack/react-router";

export const Route = createFileRoute("/_auth/(settings)/settings/")({
loader: () => {
beforeLoad: () => {
throw redirect({ to: "/settings/profile", replace: true });
},
});

0 comments on commit 5dcf827

Please sign in to comment.