Feature Request P3
Status Update
Comments
cl...@google.com <cl...@google.com> #2
Hello, can you please attach a sample that reproduces your error?
No update yet.
Hello, can you please attach a sample that reproduces your error?
Description
Component used: Paging
Version used: 3.1.1
Flow<PagingData<T>>.cachedIn extension method, although it returns a regular Flow, makes it hot by calling:
What makes a stream available for sharing. However, the SharingStarted.Lazily strategy prevents it from unsubscribing from a data source, such as Room, if there are no active subscribers. For example, when the application goes into the background.
Is it possible to change the default strategy to SharingStarted.WhileSubscribed(5.seconds) or make it more customizable?