Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby): Fix invalid algorithm of fragment cycles detection #21128

Merged
merged 1 commit into from
Feb 1, 2020

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Feb 1, 2020

Description

This PR fixes a bug in fragment cycle detection, which was causing an "Unknown fragment" error in several edge cases (when the same fragment was referenced twice in one query in specific positions and then was referenced in the other query).

It contains a fix and a test that fails without the fix.

Related Issues

Fixes #20984

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you for adding the tests as well 🥇

@sidharthachatterjee sidharthachatterjee added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Feb 1, 2020
@gatsbybot gatsbybot merged commit f570db3 into master Feb 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the vladar/gh-20984 branch February 1, 2020 20:28
@sidharthachatterjee
Copy link
Contributor

Published in gatsby@2.19.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gatsby Image - Unknown fragment ...
3 participants