Is that really the suggested solution/way, to solve this problem? Seems to me just as a workaround, but not as the most correct solution...
I have the following use case scenario:
I want to show a form, where I fetch the data from a REST API call. Once I obtain the api response, I'm saving the obtained field values in a state variable, that should update the various form fields. I thinks that is the recommended way of React. Cannot believe that using the setTimeout function is the correct way... Any other suggestion or idea? Or am I doing something wrong?