Skip to content

Conversation

@yaacovCR
Copy link
Contributor

This PR changes the fragment spread visiting logic to avoid re-visiting fragment spreads whenever possible.

Previously, fragment spreads that have been visited in a non-deferred capacity were not revisited, but fragment spreads that had been visited in a deferred capacity could be revisited.

This PR updates the logic so that fragment spreads that had been visited in a deferred capacity are not revisited in a deferred capacity.

See graphql/graphql-spec#1045 (comment)

@benjie @robrichard

This PR changes the fragment spread visiting logic to avoid re-visiting fragment spreads whenever possible.

Previously, fragment spreads that have been visited in a non-deferred capacity were not revisited, but fragment spreads that had been visited in a deferred capacity could be revisited.

This PR updates the logic so that fragment spreads that had been visited in a deferred capacity are not revisited in a deferred capacity.

See graphql/graphql-spec#1045 (comment)
@yaacovCR yaacovCR requested a review from a team as a code owner July 22, 2025 20:26
@yaacovCR yaacovCR added the PR: feature 🚀 requires increase of "minor" version number label Jul 22, 2025
@yaacovCR yaacovCR added PR: bug fix 🐞 requires increase of "patch" version number and removed PR: feature 🚀 requires increase of "minor" version number labels Jul 22, 2025
@yaacovCR yaacovCR merged commit 8642016 into graphql:next Jul 24, 2025
16 checks passed
@yaacovCR yaacovCR deleted the avoid branch July 24, 2025 17:23
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jul 30, 2025
This PR changes the fragment spread visiting logic to avoid re-visiting fragment spreads in additional cases.

Previously, fragment spreads that have been visited in a non-deferred capacity were not revisited, but fragment spreads that had been visited in a deferred capacity could be revisited.

This PR updates the logic so that fragment spreads that had been visited in a deferred capacity are not revisited in a deferred capacity.

See: graphql/graphql-spec#1045 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: bug fix 🐞 requires increase of "patch" version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants