Skip to content

Allows partial response from cache #187

@halberto-deezer

Description

@halberto-deezer

Discussion around #57 that is closed. Having partial response from the cache is now possible, but seems complex since it requires to override the Fetch Policy Interceptors, possibly having to handle multiple fetch policies where cache is involved.

Today to allows partial response from cache, we would have to do 3 custom Fetch Policy Interceptors (CacheFirst, NetworkFirst, CacheAndNetwork) and not use the default Apollo ones. It's a bummer since any version update we would have to check for update to do on them to align with the ones from Apollo.

As a side note, from our tests, it might also be an issue with CacheOnly Fetch Policy as empty data could now be returned if nothing is found on the cache, and it could break with .execute() usage.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions