3.8.0-beta.7
Minor Changes
-
#10994
2ebbd3abbThanks @phryneas! - Add .js file extensions to imports in src and dist/*/.d.ts -
#11045
9c1d4a104Thanks @jerelmiller! - When changing variables back to a previously used set of variables, do not automatically cache the result as part of the query reference. Instead, dispose of the query reference so that theInMemoryCachecan determine the cached behavior. This means that fetch policies that would guarantee a network request are now honored when switching back to previously used variables. -
#10915
3a62d8228Thanks @phryneas! - Changes how development-only code is bundled in the library to more reliably enable consuming bundlers to reduce production bundle sizes while keeping compatibility with non-node environments.
Patch Changes
-
#11026
b8d405eeeThanks @phryneas! - Store React.Context instance mapped by React.createContext instance, not React.version.
UsingReact.versioncan cause problems withpreact, as multiple versions ofpreactwill all identify themselves as React17.0.2. -
#11000
1d43ab616Thanks @phryneas! - Useimport * as Reacteverywhere. This prevents an error when importing@apollo/clientin a React Server component. (see #10974) -
#11035
a3ab7456dThanks @jerelmiller! - Incrementally re-render deferred queries after callingrefetchor settingskiptofalseto match the behavior of the initial fetch. Previously, the hook would not re-render until the entire result had finished loading in these cases.