You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm changing the label for a MultiSelectCard within a setState call within the MultiSelectContainer's onChange call. When I debug, I can see that build is being called, and a new MultiSelectContainer is being created, with the relevant MultiSelectCard being given the new value for its value, yet the UI doesn't change and still shows the old value (and presumably is still somehow showing the old MultiSelectCard even though I can see a new one was created with the correct new value).
The text was updated successfully, but these errors were encountered:
Ah, just to be clear - the label for the MultiSelectCard is what is changed, and while build runs and the whole MultiSelectContainer and all MultiSelectCard's are re-created, somehow the old label still shows.
Setting the MultiSelectContainer's key to a new value each time something is changed seems to workaround this issue, but it's still not clear why this is necessary to me ...?
I'm changing the label for a MultiSelectCard within a setState call within the MultiSelectContainer's onChange call. When I debug, I can see that build is being called, and a new MultiSelectContainer is being created, with the relevant MultiSelectCard being given the new value for its value, yet the UI doesn't change and still shows the old value (and presumably is still somehow showing the old MultiSelectCard even though I can see a new one was created with the correct new value).
The text was updated successfully, but these errors were encountered: