Change8

@apollo/client@4.2.6

📦 apollo-clientView on GitHub →
🐛 2 fixes

Summary

This patch release addresses an issue with relay multipart subscriptions failing serialization and optimizes cache writes by refining how @stream directives are detected during field updates.

🐛 Bug Fixes

  • Prevent relay multipart subscriptions from issuing a fetch request after serializing the request body fails.
  • Speed up cache writes by avoiding a full AST visit of every written field to detect @stream. The check now runs only when the result carries stream info, and only inspects the field node's own directives. As a result, fields that merely contain @stream on a nested field are no longer treated as streamed themselves and now overwrite existing lists like regular fields instead of merging chunk-wise.