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(core): Use documentId for operation hash if it's available #3575

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Apr 28, 2024

Summary

When persisted documents have hidden definitions (i.e. definitions: []), but have a documentId, we'd generate identical keys for all of these documents.

Instead, we should always use documentId to create a request key when it's available.

Set of changes

  • Use documentId in hashDocument

@kitten kitten requested a review from JoviDeCroock April 28, 2024 02:17
Copy link

changeset-bot bot commented Apr 28, 2024

🦋 Changeset detected

Latest commit: e6db80e

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

This PR includes changesets to release 1 package
Name Type
@urql/core 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

@kitten kitten merged commit 1c35bcf into main Apr 28, 2024
13 checks passed
@kitten kitten deleted the fix/persisted-keys branch April 28, 2024 12:27
@github-actions github-actions bot mentioned this pull request Apr 28, 2024
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