spring-attic / tut-react-and-spring-data-rest

React.js and Spring Data REST :: A tutorial based on the 5-part blog series by Greg Turnquist
https://spring.io/guides/tutorials/react-and-spring-data-rest
883 stars 1.58k forks source link

Subsequent update to first name creates a new 'firstName' row for an employee when first and last match. #131

Closed dllopis closed 3 years ago

dllopis commented 3 years ago

Thank you for the multi-part guide, I have learned a lot of new things while working on the tutorials. Something caught my eye when I was working on part-4 with the web-sockets to dynamically display updates:

A new row gets added when first name and last name are equal, but it does not happen the first time an update occurs. If you try a subsequent update on the first name then an additional first name row with the same value is added.

To reproduce:

  1. Create or update an employee with same first and last name.
  2. Update the first name and submit.
  3. A new row is added to the employee.

It's my first time posting an issue and I wanted to share some feedback ;) Thank you again for the tutorials.

ss-3