@apollo/client@4.2.9
📦 apollo-clientView on GitHub →
🐛 2 fixes🔧 3 symbols
Summary
This patch release addresses two bugs in Apollo Client. It fixes an issue with GraphQL variable default values not being applied correctly and resolves a problem with `@export` queries not reacting to cache updates.
🐛 Bug Fixes
- Fixed a bug where GraphQL variable default values were not applied during cache reads when variables with defaults were explicitly set to `undefined`. This caused `@include`/`@skip` directives to throw "Invalid variable referenced" errors when the variable was passed as `undefined` instead of being omitted entirely.
- Fixed an issue where some `@export` queries would not react to cache updates when the fields keyed by exported variables were updated.