@apollo/client@4.3.0-alpha.0
📦 apollo-clientView on GitHub →
✨ 1 features🔧 2 symbols
Summary
This release introduces TypeScript support for correctly typing the cache instance when using custom cache implementations with Apollo Client.
Migration Steps
- Declare the cache type using the `cache` property in the `TypeOverrides` interface if you need TypeScript to correctly infer the type of `client.cache` or the cache argument in mutation update functions.
✨ New Features
- Added the ability to define the cache type for the client using the `cache` property in the `TypeOverrides` interface.