@apollo/client 3.11.1 → 3.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#11980](https://github.com/apollographql/apollo-client/pull/11980) [`38c0a2c`](https://github.com/apollographql/apollo-client/commit/38c0a2c43dd28677ee240754cd389c8a08c05738) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix missing `getServerSnapshot` error when using `useSubscription` on the server.
8
+
3
9
  ## 3.11.1
4
10
 
5
11
  ### Patch Changes
package/apollo-client.cjs CHANGED
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
31
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
 
34
- var version = "3.11.1";
34
+ var version = "3.11.2";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -8122,7 +8122,7 @@ function useSubscription(subscription, options) {
8122
8122
  return observable && !skip && !ignoreResults ?
8123
8123
  observable.__.result
8124
8124
  : fallbackResult;
8125
- });
8125
+ }, function () { return fallbackResult; });
8126
8126
  return React__namespace.useMemo(function () { return (tslib.__assign(tslib.__assign({}, ret), { restart: function () {
8127
8127
  invariant(!optionsRef.current.skip, 56);
8128
8128
  setObservable(recreateRef.current());