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

198
Visualizações
how can i render a react Prompt in a specific URL

i need to render this prompt but only when the next url doesn't begin with /calendar/ I tried with window.location.pathname but this only gets the current URL, i need to know the next URL in order to know if i must render or not this prompt, i dont want the prompt gets rendered when URL change from "/calendar/" to "/calendar/information" because it's still the same page

<Prompt
  when={(this.props.agendaPlaces.length >=3 && this.props.users.length === 0)}//
  message={JSON.stringify({
    language: this.props.i18n.language,
    header: t('userLeaveConfirmationTitle'), 
    header2: t('userLeaveConfirmationTitle2'), 
    content:t('userLeaveConfirmationBody'),
    confirm:t('userLeaveConfirmationConfirm'),
    cancel:t('userLeaveConfirmationCancel')
  })}
/>
about 4 years ago · Juan Pablo Isaza
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