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-source-strapi): replace stub nodes #438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Unrud
Copy link

@Unrud Unrud commented Jun 15, 2023

If a node is created first with prepareRelationNode and the "full" node is created later, the latter must replace the former. Otherwise the imported data is incomplete.

If a node is created first with `prepareRelationNode` and the "full" node is created later, the latter must replace the former.
Otherwise the imported data is incomplete because fields with relations or components are missing.
@changeset-bot
Copy link

changeset-bot bot commented Jun 15, 2023

🦋 Changeset detected

Latest commit: 2eb845e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gatsby-source-strapi Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@laurenskling
Copy link
Contributor

I guess this relates to #412 as well?
Will this not disconnect relations if content is fetched multiple times (say you have multiple relations to same content, or fetch it directly after a relation has fetched it)?

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.

None yet

2 participants