Skip to content

Commit 7e10d97

Browse files
committed
fix crash when app is put into the background
regression from 9196358 caused by improper use of rememberSaveable
1 parent cd02710 commit 7e10d97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/src/commonMain/kotlin/site/remlit/snowdrop/component/RefreshableTimeline.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fun <T : IdentifiableObject<String>> RefreshableTimeline(
6868
val snackbarHandler = SnackbarController.current
6969
val coroutineScope = rememberCoroutineScope()
7070

71-
val timeline = rememberSaveable { mutableStateListOf<T>() }
71+
val timeline = remember { mutableStateListOf<T>() }
7272
val refreshState = rememberPullToRefreshState()
7373
var isRefreshing by rememberSaveable { mutableStateOf(false) }
7474

0 commit comments

Comments
 (0)