Reduce calendar refreshes (#1459)

* reduce calendar refreshes

* Revert "reduce calendar refreshes"

This reverts commit 1d8380d620b6706e5429d298745cf6563d48eb0e.

* debounce
This commit is contained in:
leekleak
2025-07-03 21:21:01 +02:00
committed by GitHub
parent 8985740d8c
commit 37e73c1dd4
@@ -20,6 +20,7 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.combine import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.combineTransform import kotlinx.coroutines.flow.combineTransform
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.flow.emitAll import kotlinx.coroutines.flow.emitAll
import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.map
@@ -120,7 +121,7 @@ internal class CalendarRepositoryImpl(
excludeCalendars = excludeCalendars, excludeCalendars = excludeCalendars,
providers = providers, providers = providers,
allowNetwork = false, allowNetwork = false,
) ).debounce(500)
) )
} }
} }