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

92
Visualizações
In redux how to make the data non volatile

I am using redux So i have the user input their credentials and login after login I update the state but if the page refresh the data of state in lost which should not be done how can I make it non volatile the second thing I want some ui to not display If the user logged in i have google about it but the imports they are telling here are not working anymore

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Maybe u can wrap the content u don't want to render inside Curly Braces and do a 
check if you're Condition is true or false for example: 
{!isNotLoggedIn ? // content you want to show : return null }

It should only display the content when the User is Not Logged in, otherwise it returns nothing. And for the other Problem, i would try to save the State in the localStorage or Session Storage. Or otherwise send it to a server.

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