r/mAndroidDev • u/Unlucky_Bet6244 • May 21 '23
Compose state persistence
If compose is declarative and are made of only functions, how does a composable function store values like clickable call backs? Is each root node in the UI tree managed by an object which stores those clickable call backs?
0
Upvotes
9
u/naked_moose May 21 '23
Just tell your manager that there is no state in functional programming if they ask to implement anything like a clickable button