diff --git a/.changeset/hungry-rings-help.md b/.changeset/hungry-rings-help.md new file mode 100644 index 00000000000..d5fa17d2f35 --- /dev/null +++ b/.changeset/hungry-rings-help.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0. diff --git a/.size-limits.json b/.size-limits.json index 3e400e47793..d8cc123efe5 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 40179, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32973 + "dist/apollo-client.min.cjs": 40185, + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32977 } diff --git a/src/core/ApolloClient.ts b/src/core/ApolloClient.ts index 39fc6f3d503..b9c5c7883fc 100644 --- a/src/core/ApolloClient.ts +++ b/src/core/ApolloClient.ts @@ -302,7 +302,7 @@ export class ApolloClient implements DataProxy { localState: this.localState, assumeImmutableResults, onBroadcast: - connectToDevTools ? + this.devtoolsConfig.enabled ? () => { if (this.devToolsHookCb) { this.devToolsHookCb({