Fix lag when popBackStack

This commit is contained in:
tarsin committed 2023-05-04 13:50:01 +08:00
1 parent 0299ca8b1f
commit a6cefed13f
1 file changed
+1 -1
@@ -93,7 +93,7 @@ class HistoryScene : BaseScene() {
setMD3Content {
val coroutineScope = rememberCoroutineScope()
val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior()
val historyData = remember { Pager(PagingConfig(20)) { EhDB.historyLazyList }.flow.cachedIn(viewLifecycleOwner.lifecycleScope) }.collectAsLazyPagingItems()
val historyData = remember { Pager(PagingConfig(20)) { EhDB.historyLazyList }.flow.cachedIn(lifecycleScope) }.collectAsLazyPagingItems()
Scaffold(
modifier = Modifier.nestedScroll(scrollBehavior.nestedScrollConnection),
topBar = {