Oussama Haff.
10/30/2020, 8:47 PM+ Parent // retrieves state from ViewModel, declares fun action on VM
|
|---+ Child A // passes state without using it, passes action as fun
|
|---+ Child A-1 // uses state
|
|---+ Child A-2
|
|---+ Child A-3 // invoke the action fun
When : invoking the passed action by clicking on Child A-3
Then :
+ Parent // will NOT recompose
|
|---+ Child A // will recompose (because A-1 recompose)
|
|---+ Child A-1 // will recompose
|
|---+ Child A-2 // will NOT recompose
|
|---+ Child A-3 // will NOT recompose
Siyamed
10/30/2020, 8:59 PMOussama Haff.
10/30/2020, 9:01 PMKshitij Patil
10/31/2020, 4:17 AMrecompose
programmatically? If so, then you can call the same in Child-3 or change the stage Child-A1 using and I think Child A and A-1 will recompose as you're expectingOussama Haff.
10/31/2020, 5:09 AMKshitij Patil
10/31/2020, 5:16 AM