i want to nav controller navigate to route when `F...
# compose
i
i want to nav controller navigate to route when
Flow
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?
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?
c
This sounds like fun to implemente
i