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

(core) - allow for multiple concurrent mutations of the same key #2189

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

JoviDeCroock
Copy link
Collaborator

@JoviDeCroock JoviDeCroock commented Jan 10, 2022

Resolves #2184

Summary

When we are dealing with mutations of let's say files then the key could be equal for different sets of variables, this PR moves mutations from key-checking to referential equality of the operation itself, this means that every request will have it's own result-source. This allows for us to repeat a set of mutations with different inputs

This was triggered by the discussion in #2183

Set of changes

  • move from key-checking to operation checking

@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2022

🦋 Changeset detected

Latest commit: 1b88b5e

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 Minor

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

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.

RFC: Separate repeated mutations using reference equality rather than Operation Key
2 participants