Skip to content

Commit 5dcf827

Browse files
committed
feat: at /settings/ throw the redirect from the beforeLoad instead of the loader
1 parent 964d0e5 commit 5dcf827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createFileRoute, redirect } from "@tanstack/react-router";
22

33
export const Route = createFileRoute("/_auth/(settings)/settings/")({
4-
loader: () => {
4+
beforeLoad: () => {
55
throw redirect({ to: "/settings/profile", replace: true });
66
},
77
});

0 commit comments

Comments
 (0)