mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 23:46:23 +02:00
Corrects the name of the live data on Local Cache.
This commit is contained in:
@@ -2370,7 +2370,7 @@ object LocalCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Observers line up here.
|
// Observers line up here.
|
||||||
val live: LocalCacheLiveData = LocalCacheLiveData()
|
val live: LocalCacheFlow = LocalCacheFlow()
|
||||||
|
|
||||||
private fun refreshObservers(newNote: Note) {
|
private fun refreshObservers(newNote: Note) {
|
||||||
updateObservables(newNote.event as Event)
|
updateObservables(newNote.event as Event)
|
||||||
@@ -2659,7 +2659,7 @@ object LocalCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Stable
|
@Stable
|
||||||
class LocalCacheLiveData {
|
class LocalCacheFlow {
|
||||||
private val _newEventBundles = MutableSharedFlow<Set<Note>>(0, 10, BufferOverflow.DROP_OLDEST)
|
private val _newEventBundles = MutableSharedFlow<Set<Note>>(0, 10, BufferOverflow.DROP_OLDEST)
|
||||||
val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view
|
val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user