Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!