Links prefetching (#225)

1. Marketing Layout: speed up rendering by retrieving user session from cookies instead of using server side request
2. Use "redirecting" state when signing in to keep displaying a loading state while Next.js redirects to home page
3. Use "useCallback" to prevent double tracking when switching pages
4. Add links pre-fetching in marketing navigation
5. Add new pending state to MFA verification form
6. Pre-fetch sign-in/sign-up pages
7. Fix i18n when using regional languages
8. currency formatter should default to the region if it exists
9. Update packages
This commit is contained in:
Giancarlo Buomprisco
2025-03-31 10:06:37 +07:00
committed by GitHub
parent 7c4dd23e5d
commit 7a1903d0c2
35 changed files with 1685 additions and 1667 deletions

View File

@@ -2,7 +2,6 @@ import Link from 'next/link';
import { ArrowLeft } from 'lucide-react';
import { getSupabaseServerClient } from '@kit/supabase/server-client';
import { Button } from '@kit/ui/button';
import { Heading } from '@kit/ui/heading';
import { Trans } from '@kit/ui/trans';
@@ -21,15 +20,9 @@ export const generateMetadata = async () => {
};
const NotFoundPage = async () => {
const client = getSupabaseServerClient();
const {
data: { user },
} = await client.auth.getUser();
return (
<div className={'flex h-screen flex-1 flex-col'}>
<SiteHeader user={user} />
<SiteHeader />
<div
className={