Can someone give a hint why component does not rerender although props are changing:
why is select box not rerendering although its props are changing?
appreciate all help/hints thank you very much.
Can someone give a hint why component does not rerender although props are changing:
why is select box not rerendering although its props are changing?
appreciate all help/hints thank you very much.
Hello there,
This is just a guess, as I have never used the react-select > Select
component:
props
changing are being used as defaultValue
s, it does not matter if they changeā¦the component will always use the first values passed to the default.Select
does not look for changes in the defaultValue
Hope this helps
Ive fixed this. React-Select is now behaving as desired:
and the form reset button is clearing it as well.
Glad to hear.
Well done, and happy coding
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.