hnccbits/moviehub-hactoberfest

Home page laggy due to nasty written code for fetching data in HomeViewModel

Opened this issue · 0 comments

There are numerous parts, like the trending area, the currently playing area, etc., on the app's home page. For this, the HomeViewModel class contains a separate method called for connecting with API. All of the techniques cause the progress bar to alternately show and hide, which makes the program sluggish. Enter a better solution for fetching all the files in the <app/src/main/java/com/tmdb/homepage/presentation/HomeViewModel> so that the app's core functionality is preserved.