Imagine a composable A that haves a lower composable B that haves a even lower composable C with haves some buttons.
The buttons must change a state remember variable stored in composable A. The state hoist theory tells you that you must pass, for each button, the variable value and the lambda function that modifies the state variable in two parameters from A to B, then, from B to C. But if there are 10 buttons, you will need to pass a lot of lambdas and parameters, it seems to be overprogramming and very complex.
Is there a better way to achieve this?