Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

977
Views
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 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!