Skip to content

Conversation

@BoD
Copy link
Collaborator

@BoD BoD commented Jul 21, 2025

2 new options are added to configure how/if errors are converted to exception:

  • allowCachedPartialResults
  • allowCachedErrors

Also. the CacheFirst, CacheOnly NetworkOnly fetch policies are now shortcuts to 2 flags new flags: noCache and onlyIfCached which are kept internal for now. CacheAndNetwork is deprecated. NetworkFirst still exists and points to the dedicated interceptor.

Also, split ClientCacheExtensions which started to be very long into several files.

@BoD BoD changed the title Add noCache and onlyIfCached Deprecate FetchPolicy in favor of CacheOptions Jul 22, 2025
@BoD BoD force-pushed the no-cache-only-if-cache branch from 64f2d05 to c2a1286 Compare July 22, 2025 13:49
@BoD BoD changed the title Deprecate FetchPolicy in favor of CacheOptions Deprecate FetchPolicy in favor of noCache(), onlyIfCached(), reload() Jul 23, 2025
@BoD BoD changed the title Deprecate FetchPolicy in favor of noCache(), onlyIfCached(), reload() Add noCache() and onlyIfCached(), also deprecate FetchPolicy.CacheAndNetwork Jul 23, 2025
@BoD BoD force-pushed the no-cache-only-if-cache branch from 29cdbb1 to 2723e54 Compare July 23, 2025 16:16
@BoD BoD marked this pull request as ready for review July 24, 2025 09:58
@BoD BoD requested a review from martinbonnin as a code owner July 24, 2025 09:58
@BoD BoD changed the title Add noCache() and onlyIfCached(), also deprecate FetchPolicy.CacheAndNetwork Add allowCachedPartialResults() and allowCachedErrors(), also deprecate FetchPolicy.CacheAndNetwork Jul 25, 2025
@BoD BoD merged commit af7e9e3 into main Jul 25, 2025
2 of 4 checks passed
@BoD BoD deleted the no-cache-only-if-cache branch July 25, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants