John Marshall
08/15/2025, 1:42 AMJohn Marshall
08/15/2025, 1:43 AMfetchPolicy(FetchPolicy.CacheOnly).toFlow().onCompletion { emitAll(fetchPolicy(FetchPolicy.NetworkOnly).toFlow()) }
thats pretty verbose...bod
08/15/2025, 6:33 AM.execute()
unlike the other ones.
> thats pretty verbose...
True, but you can make it an extension to not repeat it everywhere.
> Would be nice if it was possible to contribute our own fetch policies with their own set of execution options (or similar?)
You can actually! By setting your own fetchPolicyInterceptor
. An example here.John Marshall
08/15/2025, 3:21 PM