lilypuchi
06/11/2022, 12:37 PMIn SubcomposeLayout for example, whenever a layout occurs, the parameters passed to its lambda might vary, and in that case it will trigger a recomposition. In the other hand, if a state that is read from a subcomposition changes, a recomposition will be scheduled for the parent Composition once the initial composition is performed.
How does one read read a state from a subcomposition 🤔 ? Is it same as reading state ‘in’ a subcomposition or am I reading it wrong?shikasd
06/11/2022, 1:42 PMlilypuchi
06/11/2022, 2:09 PMif you only read some state in subcomposition, it shouldn’t trigger any updates to the parentYeah right, that’s why I am little confused :blob-sweat-smile: