Describe the bug
If you use a custom component inside a FieldControl, it only renders at the beginning, but after that, if you change the state, it will keep its initial values
To Reproduce
Steps to reproduce the behavior:
Here us a stackblitz showing the issue. I am using this library
https://github.com/JedWatson/react-select
So inside the render method of the form field, I am trying to use this component instead of a html select, and it takes the default options. In componentDidMount, I have set up a setTimeout to represent a API call, and after the timeout is finished, options are loaded but the component still shows no options
https://stackblitz.com/edit/react-myx6ak
Expected behavior
I expect that when the render function runs, the custom field should re-render
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug If you use a custom component inside a FieldControl, it only renders at the beginning, but after that, if you change the state, it will keep its initial values
To Reproduce Steps to reproduce the behavior: Here us a stackblitz showing the issue. I am using this library https://github.com/JedWatson/react-select So inside the render method of the form field, I am trying to use this component instead of a html select, and it takes the default options. In componentDidMount, I have set up a setTimeout to represent a API call, and after the timeout is finished, options are loaded but the component still shows no options https://stackblitz.com/edit/react-myx6ak
Expected behavior I expect that when the render function runs, the custom field should re-render
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.