Closed PaulFarault closed 1 year ago
The user input of the form are stored in Redux. It would be better to store them in a local context (as it was in the first place, but keeping the reducers introduced by Redux), and then send it to Redux once validated.
Also, we must ensure that the variables that have been modified and then the modification canceled, are not send to the server. (as described in https://github.com/TOSIT-IO/tdp-ui/pull/157#issuecomment-1415863529).
We may want to use React Hook Form for this one.
Unintentionally closed
The user input of the form are stored in Redux. It would be better to store them in a local context (as it was in the first place, but keeping the reducers introduced by Redux), and then send it to Redux once validated.
Also, we must ensure that the variables that have been modified and then the modification canceled, are not send to the server. (as described in https://github.com/TOSIT-IO/tdp-ui/pull/157#issuecomment-1415863529).