Joakim Forslund
03/03/2022, 11:46 AMfun subscribe(onChanged: (AppState) -> Unit):StoreSubscription {
return store.subscribe { onChanged(store.state) }
}
What would be the easieast way to make this more generic to listen to a specific state rather than the appstate? Obviously making each state inherit from a base class or interface is one way, but is there a more functional way?Alexander Black
03/10/2022, 11:52 PMEmanuel Moecklin
03/21/2022, 12:50 PMJoakim Forslund
03/21/2022, 1:00 PM