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.65k stars 454 forks source link

fix(graphcache): Add missing operations record on cache result #3193

Closed kitten closed 1 year ago

kitten commented 1 year ago

Resolves #3188

Summary

A regression caused operations to not be recognised internally by Graphcache anymore when they were previously torn down and then queried from the cache without refetching. In short, the cacheExchange would lose its record of the Operation and would be unable to issue updates for the queries.

Set of changes