Why does component not rerender although props are changing

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:

  • Perhaps, as the props changing are being used as defaultValues, 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

1 Like

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 :smiley:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.