urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.57k stars 444 forks source link

fix(graphcache): Fix extra variables regression #3356

Closed kitten closed 11 months ago

kitten commented 11 months ago

Resolves #3355

Summary

Changes in #3317 accidentally removed code that preserved the original operation for optimistic and non-optimistic mutation updaters, and needed to be reverted to their previous state. This was caused by a merge conflict between optimistic mutation markers and the changes in #3317 and the prior lines that retrieved the original operation had gotten lost in testing.

A new unit test was added to prevent further regressions.

Set of changes