Moritz Hofmeister
08/14/2024, 9:27 AMonChange
function for MUI components now?
Previously, with the value
parameter being dynamic
it was pretty straight forward because we just did onChange = { _, value: String?, _, _ -> … }
.
Now, with value
being refactored from dynamic
to Any
or Any?
depending on the component, I need to do an unsafe cast inside the function like value as String?
. Is this really the intended way?turansky
08/14/2024, 12:12 PMT?
?Moritz Hofmeister
09/11/2024, 4:17 PMdetails: AutocompleteChangeDetails<Value>?
contains the value T
.
value
should be T?
and not Any
Moritz Hofmeister
09/12/2024, 7:30 AMdetails
parameter because of the type system:
When multiple = true
, we still get T
when it should be Array<T>
.turansky
09/12/2024, 7:31 AMAny (T | Array<T>)
turansky
09/12/2024, 7:33 AM