Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

304
Vistas
Popup which persists through page redirect Next.js (React)

I am using Next.js for one of the projects that I work on. I wonder if someone could help me with an advice on how to show a popup (popup component, I think it could be based on Alert or Modal or something) to user in browser when I redirect to a certain page. In my very case, I am implementing a password reset logic and on the page for setting new password I am verifying the token in the url. If that token is not valid I have an immediate redirect to login. I just want to give the user some general message like "Not successful" or something to indicate that reset did not work. This should be done as a popup in my opinion and should be shown for some seconds on login page that we land our user on.

Thank you in advance and wish you all good!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try using react-toastify for notification

For example with @ernesto comment, my logic like this

React.useEffect(() => {
if (query === 'error') {
toast.error('Not successful')
}
}, [])
about 4 years ago · Juan Pablo Isaza Denunciar
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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda