https://kotlinlang.org logo
#compose
Title
# compose
j

Justin Xu

01/22/2023, 8:53 AM
I am creating a group-focused app that has a lot of business logic dependent on which group is currently selected by the user. Is there a way to share this selected group state between all my viewmodels?
c

Chuck Stein

01/22/2023, 5:23 PM
Create a data layer that sits below all your view models and holds the source of truth for the group state(s)
3 Views