Hey, ive got a rx api design question. I want to h...
# rx
u
Hey, ive got a rx api design question. I want to have a
AccountHelper
which exposes observable of
AccountState
which is just a data class of
AccountState(hasAccountCreated, hasAccountInitialized)
. I also have
AccountManager
and which creates account, I could expose that somehow as observable, and account initializer for the other field. My question is, if I were to
combineLatest
the
accountManager.accountObservable
and
accountInitializer.isInitializedObservable
... should I also then proxy the "mutator" methods to the account manager / initializer? I.e. should I hide it all behind
AccountHelper
fasade (composition)? (ie.
AccountHelper.createAccount()
just proxies to
AccountManager.createAccount()
) ....or should I let api consumers deal with specific object (account manager / initializer)