kopia lustrzana https://github.com/vitorpamplona/amethyst
adding a delay to the search screen update on start up
rodzic
a7e17c810d
commit
b570d80ac4
|
@ -67,6 +67,7 @@ import com.vitorpamplona.amethyst.ui.screen.FeedView
|
|||
import com.vitorpamplona.amethyst.ui.screen.NostrGlobalFeedViewModel
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.debounce
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.filter
|
||||
|
@ -87,6 +88,8 @@ fun SearchScreen(accountViewModel: AccountViewModel, navController: NavControlle
|
|||
|
||||
LaunchedEffect(Unit) {
|
||||
feedViewModel.invalidateData()
|
||||
delay(500)
|
||||
feedViewModel.invalidateData()
|
||||
}
|
||||
|
||||
DisposableEffect(accountViewModel) {
|
||||
|
|
Ładowanie…
Reference in New Issue