Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

305
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda