more auth ree
This commit is contained in:
@@ -127,6 +127,11 @@ export const Route = createRootRouteWithContext<{
|
||||
|
||||
return { auth };
|
||||
} catch (error: any) {
|
||||
if (error?.options?.to && error?.options?.statusCode) {
|
||||
console.log('__root beforeLoad: Re-throwing redirect', error.options);
|
||||
throw error;
|
||||
}
|
||||
|
||||
console.error('__root beforeLoad error:', error);
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user