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

201
Visualizações
Spring Boot + React: reload application tabs when data has been posted to the server on one of the tabs

I'm making a Spring Boot + React application.

Let's say I opened 2 identical tabs with Update Employee component: like on a screenshot

I made some changes on one of the tabs. I sent data to the server by clicking Save button.

The problem is that I don't want to let user go to the second tab with old data loaded on the form. The user might click Save an the old data will override recently posted data. And therefore no changes will be made.

What is a mechanism to reload/rerender all the other tabs after data has been posted to the server on one of the tabs? So there will be the actual data shown everywhere.

Or are there some patterns to do it in a proper way?

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

0

Your problem will be solved with using optimistic locking and versioning your entities in the database. If you're using jpa please refer to this post

https://www.baeldung.com/jpa-optimistic-locking

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