Skip to content

Commit

Permalink
Bugfix: DialogList with async loader and no saver did not load items …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
MFlisarWork committed Jan 27, 2025
1 parent aea64b1 commit 1e32878
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ private fun <T> DialogList(
mutableStateOf("")
}

val filteredItemsLoaded =
if (itemsProvider is DialogList.ItemProvider.Loader && itemsProvider.itemSaver != null) {
rememberSaveable { mutableStateOf(false) }
} else remember { mutableStateOf(true) }
val filteredItemsLoaded = rememberSaveable { mutableStateOf(itemsProvider is DialogList.ItemProvider.List) }

val filteredItems = remember(items.value, filterText, filter) {
derivedStateOf {
Expand Down

0 comments on commit 1e32878

Please sign in to comment.