Skip to content

MBL-3141: Temporarily disable Apollo cache configuration#2488

Merged
tonyteate merged 2 commits intomasterfrom
tony/mbl-3141
Mar 12, 2026
Merged

MBL-3141: Temporarily disable Apollo cache configuration#2488
tonyteate merged 2 commits intomasterfrom
tony/mbl-3141

Conversation

@tonyteate
Copy link
Copy Markdown
Contributor

@tonyteate tonyteate commented Mar 11, 2026

📲 What

Temporarily disable the Apollo client in-memory cache configuration.

🤔 Why

Overall, it was exceedingly important to make sure that we can support a normalized cache in our Apollo client, which enables a significantly more responsive user experience. We accomplished this in #2445.

However, with Apollo v3 the default client-wide fetch policy for all queries is Cache-First, and contrary to the documentation, there is no method on the client Builder to change the default policy. At the moment, this is not the desired behavior, as we would prefer to specify a cache-enabled policy per network call. (Though we may be able to achieve the desired behavior by borrowing certain implementation details from the library, the best path forward would be to upgrade to Apollo v4+.)

🛠 How

Remove the calls to NormalizedCache.configureApolloClientBuilder() and fetchPolicy(), but retain the dependency and of course the adjustment DateTimeAdapter.

👀 See

N/A

📋 QA

Use the app.

Story 📖

[MBL-3141] Temporarily disable apollo cache configuration - Jira

@tonyteate tonyteate requested a review from Arkariang March 11, 2026 21:30
@tonyteate tonyteate merged commit c7e8b1e into master Mar 12, 2026
3 checks passed
@tonyteate tonyteate deleted the tony/mbl-3141 branch March 12, 2026 14:27
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