Observer in MVVM kotlin architecture returns previous result first
I am using Kotlin MVVM architecture and whenever I call an API using retrofit, I get a response correctly the first time but on calling the same API the second time, the previous result is shown.
I am following this Github resource and I am facing the same issue as the issue raised here in GitHub. Any ideas what I might be missing? My code structure is similar to the pattern shown here in this link.
<a href="https://github.com/umangburman/MVVM-Retrofit-Kotlin-Example/issues/1" rel="nofollow...