Switch firebase repository stateflow to eager mode.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2024-06-04 12:54:57 +02:00
parent aa1603819f
commit 483a8cf556

View file

@ -70,7 +70,7 @@ class FirebaseRepository @Inject constructor(
} }
}.stateIn( }.stateIn(
scope = CoroutineScope(Dispatchers.Default + Job()), scope = CoroutineScope(Dispatchers.Default + Job()),
started = SharingStarted.Lazily, started = SharingStarted.Eagerly,
initialValue = emptyMap() initialValue = emptyMap()
) )
@ -102,7 +102,7 @@ class FirebaseRepository @Inject constructor(
} }
}.stateIn( }.stateIn(
scope = CoroutineScope(Dispatchers.Default + Job()), scope = CoroutineScope(Dispatchers.Default + Job()),
started = SharingStarted.Lazily, started = SharingStarted.Eagerly,
initialValue = NetworkThrowMap(), initialValue = NetworkThrowMap(),
) )