3.8.0-alpha.14
Minor Changes
-
#10755
e3c676debThanks @alessbell! - Feature: addsuseBackgroundQueryanduseReadQueryhooks -
#10853
300957960Thanks @jerelmiller! - Introduce the newremoveTypenameFromVariableslink. This link will automatically remove__typenamefields fromvariablesfor all operations. This link can be configured to exclude JSON-scalars for scalars that utilize__typename.This change undoes some work from #10724 where
__typenamewas automatically stripped for all operations with no configuration. This was determined to be a breaking change and therefore moved into this link.
Patch Changes
-
#10869
ba1d06166Thanks @phryneas! - Ensure Context value stability when rerendering ApolloProvider with the sameclientand/orsuspenseCacheprop -
#10789
23a4e1578Thanks @phryneas! - Fix a bug where other fields could be aliased to__typenameorid, in which case an incoming result would be merged into the wrong cache entry. -
#10765
35f36c5aaThanks @phryneas! - More robust types for thedataproperty onUseFragmentResult. When a partial result is given, the type is now correctly set toPartial<TData>. -
#10852
27fbdb3f9Thanks @phryneas! - Chore: Add ESLint rule for consistent type imports, apply autofix -
#10877
f40248598Thanks @phryneas! - Change an import inuseQueryanduseMutationthat added an unnecessary runtime dependency on@apollo/client/core. This drastically reduces the bundle size of each the hooks. -
#10836
6794893c2Thanks @phryneas! - Remove the deprecatedreturnPartialDataoption fromuseFragmenthook. -
#10872
96b4f8837Thanks @phryneas! - The "per-React-Version-Singleton" ApolloContext is now stored onglobalThis, notReact.createContext, and throws an error message when accessed from React Server Components.