About state hoisting, I have two questions:
• When we build a simple screen, there will be a few states and few
onValueChange
, but when we build a complex screen, we will get a lot of states and lots of
onValueChange
, there will be many parameters for the composable method, is there any optimization we can do to reduce the parameters?
• If we have
onValueChange
inside a very deep composable, it will pass all the way up to the top screen to actually handle the
onValueChange
, is there a better way to do it instead of passing it all the way up to the top screen?