home page redirect loading fix

This commit is contained in:
2026-04-21 10:39:13 +05:30
parent 05fcb0a0d5
commit 11d8e5daa6
2 changed files with 12 additions and 7 deletions

View File

@@ -19,7 +19,9 @@ export default function LoginPage() {
useEffect(() => {
if (loading) return
if (user) navigate('/write', { replace: true })
if (user) {
import('./HomePage').then(() => navigate('/write', { replace: true }))
}
}, [user, loading, navigate])
async function handleGoogleSignIn() {