I have a React application that includes a form that is displayed on the server side, pre-populated by user work. The problem is that if the user edits the value in the form before the application loads, the application is not aware of this change. When the user saves, the unchanged data that was displayed by the server is re-saved, and the new user data is deleted, although it is still displayed on the form. In short, there seems to be a gap between the React values ββand the input in the markup, which it replaces on initial load.
I believe that I could put links to each input and copy their values ββto the application state on the DidMount component, but there should be a better way. Has anyone else solved this problem?
Update
Now I believe that the best way to solve this problem would be for React to take input values ββinto account when creating checksums. GH problem: https://github.com/facebook/react/issues/4293
reactjs forms isomorphic-javascript
Dan ross
source share