home page redirect loading fix
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user