Skip to content

Commit 7d833b8

Browse files
authored
Fix issue accessing mutations from devtools (#11946)
1 parent d9f9d15 commit 7d833b8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/hungry-rings-help.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": patch
3+
---
4+
5+
Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0.

.size-limits.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"dist/apollo-client.min.cjs": 40179,
3-
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32973
2+
"dist/apollo-client.min.cjs": 40185,
3+
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32977
44
}

src/core/ApolloClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export class ApolloClient<TCacheShape> implements DataProxy {
302302
localState: this.localState,
303303
assumeImmutableResults,
304304
onBroadcast:
305-
connectToDevTools ?
305+
this.devtoolsConfig.enabled ?
306306
() => {
307307
if (this.devToolsHookCb) {
308308
this.devToolsHookCb({

0 commit comments

Comments
 (0)