Colton Idle
06/20/2025, 1:33 PMMutableState<Bar>
as arguments instead of just Bar
. I want to point to some documentation about this but I'm coming up empty. I could have sworn the android docs had something very clearly about this sort of pattern. Does anyone remember by chance?Colton Idle
06/20/2025, 1:36 PMeygraber
06/20/2025, 2:18 PMThe general pattern for state hoisting in Jetpack Compose is to replace the state variable with two parameters...
eygraber
06/20/2025, 2:18 PMColton Idle
06/20/2025, 2:31 PMeygraber
06/20/2025, 2:33 PMWinson Chiu
06/20/2025, 2:45 PMeygraber
06/20/2025, 2:52 PMZlata
06/20/2025, 2:53 PMWinson Chiu
06/20/2025, 2:56 PMeygraber
06/20/2025, 3:00 PMCan you find an explicit mention in Android Compose documentation, not to pass a MutableState<T> as a parameter to other functions, but instead to pass its value, and a lambda to update it? To be clear, I'm looking for explicit mention of not passing a MutableState<T>, and not just the alternative of the value and lambda.
Colton Idle
06/20/2025, 3:08 PMColton Idle
06/20/2025, 3:10 PMMofe Ejegi
06/20/2025, 6:44 PM