Thread
#compose
    Hachemi Hamadi

    Hachemi Hamadi

    11 months ago
    Is there any library / way to create something like Event Bus in Jetpack Compose
    nilTheDev

    nilTheDev

    11 months ago
    What do you mean by Event bus?
    A flow? Maybe?
    adjpd

    adjpd

    11 months ago
    I tend to think the methods on your state object and the propagated state render an event bus redundant
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    11 months ago
    An event bus is really just a pattern you can implement a number of ways, with or without compose. If you want an event bus, you don't need anything special for compose. But in my experience they tend to make code harder to maintain, so I would avoid.
    Hachemi Hamadi

    Hachemi Hamadi

    11 months ago
    Is there any other way to notify the UI about let's say token expiration after a network response with 401 code. I want to be able to log out the user, and i though doing it with an interceptor (using okhttp) would be better than writing it with each request made.