Rob
07/07/2023, 2:52 PMDatePicker
not not updating the selectable dates when validDates
changes. I was able to force a composition of a new DatePicker
with key
but is there a better way or am I doing it wrong? Thanks!mkrussel
07/07/2023, 3:33 PMdateValidator
is capturing the original validDates
property.
rememberUpdatedState
can be helpful for that.Rob
07/07/2023, 3:43 PMrememberUpdatedState: reference a value in an effect that shouldn't restart if the value changes
. The problem is that it's not re-composing when validDates
changes which changes dateValidator
.mkrussel
07/07/2023, 3:46 PMRob
07/07/2023, 3:47 PM