emits the concrete value. Is it correct to do that in compose or i must think different? If correct, what is the best way to do that?
iamthevoid
06/24/2021, 11:46 AM
or I better ask: what if i want route to destination automatically. For example all requests authorized with bearer token. When token became invalid i must kick user from authorized zone of app. What elements should i use?
I assume that the
Flow
(StateFlow) and some kind of subscription. What is the best way subscribe on flow in compose?