Skip to content

feat(graphql-js-tag): add document cache#631

Merged
pavelglac merged 5 commits intomainfrom
user/pavelglac/caching-documents
Feb 6, 2026
Merged

feat(graphql-js-tag): add document cache#631
pavelglac merged 5 commits intomainfrom
user/pavelglac/caching-documents

Conversation

@pavelglac
Copy link
Contributor

@pavelglac pavelglac commented Feb 5, 2026

In version 3.10.5 Apollo changed how hook behaves when the query reference changes. Previously, it would simply change the ref and continue. The new behavior triggers a rerender. Our GraphQL tag creates a new reference for each call, which leads to infinite rerendering.

This fix aligns with graphql-tag.

@pavelglac pavelglac force-pushed the user/pavelglac/caching-documents branch from c1aa33e to db4d9d0 Compare February 5, 2026 15:35
@pavelglac pavelglac force-pushed the user/pavelglac/caching-documents branch from db4d9d0 to d330177 Compare February 5, 2026 15:38
@pavelglac pavelglac merged commit b4216e5 into main Feb 6, 2026
5 checks passed
@pavelglac pavelglac deleted the user/pavelglac/caching-documents branch February 6, 2026 10:23
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