Hi there, I need to go to particular destination/d...
# coroutines
a
Hi there, I need to go to particular destination/dialog in my app when ever the user receives HTTP error 401. Is it possible to observe/post that error from a simple kotlin class to a host activity, doesn't matter whichever fragment I am on? I do not want to abuse live data for this as this condition may only occur sometimes. Any kind help would be appreciated.
l
I'd use a StateFlow for that since we're in #coroutines. Actually, that's what I use already.
👌 1
😜 1
a
Thanks @louiscad.