Maybe not the part of compose ui I am using cache ...
# compose
a
Maybe not the part of compose ui I am using cache data which is
LinkedHashMap
for pagination to store all the fetched data. (link to class https://github.com/amar1995/ModularNewsApp/blob/main/app/src/main/java/com/amar/modularnewsapp/viewmodel/ArticleModel.kt#L21) There is refresh function which clear above cached class datas. (link to that part https://github.com/amar1995/ModularNewsApp/blob/main/app/src/main/java/com/amar/modularnewsapp/viewmodel/ArticleModel.kt#L173) Now, It is working fine when I have a less amount of data (i.e successfully cleared all the data). But when there is large amount of data refresh function called but data is not cleared and hence ui is not getting refreshed. Please, help me to relsove this issue.