package Ġpl . g mat . paging refresh issue Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġandroidx . paging . Pager Ċ import Ġandroidx . paging . Paging Config Ċ import Ġandroidx . paging . cached In Ċ Ċ class ĠMain ViewModel Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġpager Ġ= ĠP ager ( Paging Config ( pageSize Ġ= Ġ 3 0 )) Ġ{ ĠItem Paging Source () Ġ} ĊĠĠĠ Ġval Ġitems Flow Ġ= Ġpager . flow . cached In ( viewModel Scope ) Ċ } Ċ