simple question (Probably duplicate :grin:) ! i have father and child compose function , i set a mut...
m
simple question (Probably duplicate 😁) ! i have father and child compose function , i set a mutable state in father compose function , how can i change father state in child compose function ? (when i pass it as a parameter it is only readable)
f
Using a function/callback parameter. Something like
onClick
parametr on button.
❤️ 1
👍 1
k
if you want to read up on this, this is called state hoisting.
❤️ 1
👍 2
m
Thank you So MUCH ❤️😍 !!!!!!!!! @Filip Wiesner @kotlinforandroid
👌 1