• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

601
Vistas
Toastify does not work on the register page in react

I want to show a toast when user will be sign up and getting verification email. But Toast dosen't show.

const navigate=useNavigate();
const from = location.state?.from?.pathname || "/";    
const[confirmPassword, setConfirmPassword]=useState("");

const [
    createUserWithEmailAndPassword,
    user,
    loading,
    error,
  ] = useCreateUserWithEmailAndPassword(auth, {sendEmailVerification: true} );

  if(loading){
    
    return <div><Loading></Loading></div>
  }

  let element;
if (error) {
    element = <p>Error: {error.message}</p>
}
  if (user) {
    navigate(from, { replace: true });
    toast('sending email verification')
      
  }
about 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda