Skip to content

Commit 539456c

Browse files
committed
minor changes
1 parent c2f00bc commit 539456c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/source/migrating/apollo-client-4-migration.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Apollo Client 3.14 introduces many deprecations and warnings that will help you
2424
- Network errors are now passed through as-is without wrapping them in a separate error class, making them easier to debug
2525
- TypeScript improvements
2626
- The `variables` option used throughout various client APIs (e.g. `client.query` or `useQuery`) now requires that the `variables` option is provided if any variable is non-optional.
27-
- return types are more precise, taking options into account - if you pass in the `returnPartialData` option, `data` on the return object will be `DeepPartial<TData>`
27+
- Return types are more precise, taking options into account - if you pass in the `returnPartialData` option, `data` on the return object will be `DeepPartial<TData>`
2828
- A new `dataState` property has been added that contains information about the state of the `data` property which can be used to accurately narrow down the type of `data`.
2929
- Types are now generally colocated in a namespace with the API that owns them, making them more discoverable with clear ownership boundaries
3030
- Selective core types, such as those used for data masking, can now be overridden to provide your own type implementations
@@ -61,7 +61,7 @@ npm install @apollo/client graphql rxjs
6161

6262
To ease the migration process, we have provided a codemod that automatically updates your codebase.
6363

64-
This codemod consists of the following steps:
64+
This codemod runs modifications in the following order:
6565

6666
<ol><li>
6767

@@ -589,7 +589,9 @@ const client = new ApolloClient({
589589
// ...
590590
});
591591
```
592+
592593
Previously, all Apollo Client instances were bundled with local state management functionality, even if you didn't use the `@client` directive. This change means local state management is now opt-in and reduces the size of your bundle when you aren't using this feature.
594+
593595
### Change `connectToDevTools`
594596

595597
The `connectToDevTools` option has been replaced with a new `devtools` option that contains an `enabled` property.

0 commit comments

Comments
 (0)