What should the expected behavior be for `StoreRea...
# store
b
What should the expected behavior be for
StoreReadRequest.cached(key, refresh = true)
? I figured it would hit my SoT first then try to refresh. However without a network connection it fails to return any data — even the SoT data
m
Hmm looking
Can you share how you are making the request?
b
Copy code
scope.launch {
      store.stream<EventWriteResponse>(StoreReadRequest.cached(EventKey.Read.All, true))
        .filterIsInstance<StoreReadResponse<EventData.Collection>>()
        .collect(events)
    }
I switch the refresh to false for the time being, introduce a delay then do
Copy code
store.fresh<EventKey, EventData, Event>(EventKey.Read.All)
and it all works