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

226
Visualizações
Redux - Unable to get updated state values in COUNTER

I have just started learning Redux, Having some understanding I tried creating a counter app and the state of my app is not working even after dispatching an action with type. Please share your thoughts.

Here is the source code CODESANDBOX LINK

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

0

You'd better use react-redux. See Why Use React Redux?

The process of subscribing to the store, checking for updated data, and triggering a re-render can be made more generic and reusable. A UI binding library like React Redux handles the store interaction logic, so you don't have to write that code yourself.

There is no need to subscribe to the store by yourself. The reason why UI doesn't change even if you dispatch the action is because the App component doesn't re-render to get the latest state from the redux store.

Refactor to this: codesandbox

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