Skip to content

Commit

Permalink
chore: remove code block from patch change that removed SuspenseCache…
Browse files Browse the repository at this point in the history
… prop on ApolloProvider
  • Loading branch information
alessbell committed Aug 3, 2023
1 parent f765f90 commit 0e3ed26
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,22 +389,7 @@
- [#11086](https://github.com/apollographql/apollo-client/pull/11086) [`0264fee06`](https://github.com/apollographql/apollo-client/commit/0264fee066cb715602eda26c7c0bb1254469eccb) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where a call to `refetch`, `fetchMore`, or changing `skip` to `false` that returned a result deeply equal to data in the cache would get stuck in a pending state and never resolve.
- [#11053](https://github.com/apollographql/apollo-client/pull/11053) [`c0ca70720`](https://github.com/apollographql/apollo-client/commit/c0ca70720cf5fbedd6e4f128b460c1995d9c55a7) Thanks [@phryneas](https://github.com/phryneas)! - Add `SuspenseCache` as a lazy hidden property on ApolloClient.
This means that `SuspenseCache` is now an implementation details of Apollo Client
and you no longer need to manually instantiate it and no longer need to pass it
into `ApolloProvider`.
Trying to instantiate a `SuspenseCache` instance in your code will now throw an
error.
Migration:
```diff
-import { SuspenseCache } from '@apollo/client';

-const suspenseCache = new SuspenseCache();

-<ApolloProvider client={client} suspenseCache={suspenseCache} />;
+<ApolloProvider client={client} />;
```
This means that `SuspenseCache` is now an implementation details of Apollo Client and you no longer need to manually instantiate it and no longer need to pass it into `ApolloProvider`. Trying to instantiate a `SuspenseCache` instance in your code will now throw an error.
- [#11115](https://github.com/apollographql/apollo-client/pull/11115) [`78739e3ef`](https://github.com/apollographql/apollo-client/commit/78739e3efe86f6db959dd792d21fa12e0427b12c) Thanks [@phryneas](https://github.com/phryneas)! - Enforce `export type` for all type-level exports.
Expand Down

0 comments on commit 0e3ed26

Please sign in to comment.