Hiranyey Gajbhiye
07/12/2022, 5:36 AMcreateFakeComposeScreen(state,clickHandler1,clickHandler2,clickHandler3,functionality4)
and the increasing amount of parameters is looking bad
Do you know how to solve this problem???
We want something like this
createFakeComposeScreen(state,groupOfFunctions)
and we can call groupOfFunctions.clickhandler1.invoke() in compose code
🤔Kazik
07/12/2022, 7:14 AMRoman Churkov
07/12/2022, 7:50 AMfun a(param: Int){ Log.d("FUN",param.toString())}
fun b(param: Int){ Log.d("FUN",param.toString())}
fun c(param: Int){ Log.d("FUN",param.toString())}
@Composable
fun Comp(
funArray: Array<(Int) -> Unit>
){}
Comp(funArray = arrayOf(::a, ::b, ::c))