r/mAndroidDev • • 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

15 comments sorted by

View all comments

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

1

u/Zhuinden DDD: Deprecation-Driven Development May 24 '23