@apollo/client@4.1.0-alpha.2
📦 apollo-clientView on GitHub →
✨ 1 features🐛 1 fixes🔧 2 symbols
Summary
This release adds a callback‑based `context` option for `useMutation` and introduces a validation error for `@stream` without an `incrementalDelivery` handler.
✨ New Features
- You can now provide a callback function as the `context` option on the `mutate` function returned by `useMutation`. The callback receives the hook's context, allowing you to merge it with per‑mutation values.
🐛 Bug Fixes
- An error is now thrown when `@stream` is detected without an `incrementalDelivery` handler configured.
🔧 Affected Symbols
useMutationmutate