DEV Community

Discussion on: A historical introduction to the Compose reactive state model

Collapse
 
aartikov profile image
Artur Artikov

Should we use Compose state management outside of presentation layer? I mean some stateful observable objects in domain or data layers.

Collapse
 
lgtout profile image
jabiodun

This is a very interesting idea. What might that look like? Can you elaborate a bit more? I imagine this would replace either RxJava or Flow on these lower layers.

Collapse
 
zachklipp profile image
Zach Klippenstein

I don't personally have a strong opinion here. If it makes sense, and it makes the code cleaner/more testable/easier to maintain, then sure.