Company
Date Published
Author
Jerel Miller
Word count
2909
Language
English
Hacker News points
None

Summary

Apollo Client 3.8 introduces several significant features and improvements, including support for React Suspense integration, programmatically modifying query documents using custom document transforms, automatically removing `__typename` fields from variables, a new error extraction mechanism that reduces bundle size in production builds, type-safe way to skip queries with the `skipToken`, a new directive `@nonreactive` to selectively skip re-rendering for data changed in specific field or fragment subtrees, and improved ESM compatibility. The release also introduces a Spotify Showcase fully integrated with Apollo Client. Future plans include introducing lazy versions of `useBackgroundQuery` and suspenseful version of `useFragment`, as well as more robust testing utilities and fine-grained metrics throughout the core library.