Ofir Bar

    Ofir Bar

    2 years ago
    Doing the following makes the UI emit values, but once new data is received from the backend, the UI still gets the initialized data:
    Kirill Prybylsky

    Kirill Prybylsky

    2 years ago
    That’s exactly what it must to do
    Ofir Bar

    Ofir Bar

    2 years ago
    I observe this LiveData inside the
    onStart()
    in my UI, and it works for the first
    onStart()
    This populates a RecyclerView with data. However, if the data in the backend has changed, when the LiveData is called again when triggering
    onStart()
    again (navigating away and back to the UI) the UI still contains the initial list. So LiveData initial value can’t change I guess?