Skip to content

Conversation

@woodwoerk
Copy link
Collaborator

Problem

Apollo is showing a cache warning in production when updating Framework configs:

⚠️ Cache data may be lost when replacing the configs field of a Framework object.

This occurs because Apollo doesn't know how to safely merge the configs array field when updates occur, potentially causing unnecessary network requests.

Solution

Added a merge function in the Apollo cache configuration to explicitly handle updates to the Framework's configs field. Since our queries always return the complete list of configs, we can just replace the existing data with incoming data.

Also added a GQL fragment for FrameworkConfig queries.

@woodwoerk woodwoerk force-pushed the fix/apollo-config-cache branch from 6d3d938 to e2eaba8 Compare June 19, 2025 10:15
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.

3 participants