Michal Guspiel
03/26/2024, 2:01 PMonValueChange
is called multiple times. This only happens if my TextField value exists in ViewModel. If value exists in composable use remember
it behaves as expected.
Has anyone faced a similar issue?Arkadii Ivanov
03/26/2024, 6:42 PMMichal Guspiel
03/26/2024, 6:58 PMLaunchEffect(Unit){...}
get’s called dozens of time. This also happens if I back up my TextField with var key by _remember_ *{* _mutableStateOf_("") *}*
(tried this to verify that recompositions aren’t ducked). In such case input to TextField works alright but afterwards the app doesn’t work right.Arkadii Ivanov
03/26/2024, 6:59 PMMichal Guspiel
03/26/2024, 7:02 PMtext: String,
onSearchUpdate: (String) -> Unit,
to BuildContent function in order to verify if the issue doesn’t come from MVI-OrbitArkadii Ivanov
03/26/2024, 7:30 PMDjuro
03/27/2024, 8:47 AM1.5.8
and maybe try with TextFieldState
, though I am unsure why it wouldn't work nowMichal Guspiel
03/27/2024, 12:52 PMUIView.setAnimationsEnabled(*false*)
fixes the issue.Colton Idle
03/31/2024, 12:41 PM