Skip to content

Commit 1ea9dc3

Browse files
fix: #2085 update Apollo Client devtools option (#2086)
* fix: #2085 update Apollo Client devtools option * docs: Add changeset for faustwp-core/src/client.ts * fix: fix formatting issues in packages/faustwp-core/src/client.ts
1 parent 59ef4e3 commit 1ea9dc3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/wide-mangos-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@faustwp/core': patch
3+
---
4+
5+
Changed the way the devtools option is configured for the Apollo Client

packages/faustwp-core/src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ export function createApolloClient(authenticated = false) {
102102

103103
let apolloClientOptions: ApolloClientOptions<NormalizedCacheObject> = {
104104
ssrMode: typeof window === 'undefined',
105-
connectToDevTools: typeof window !== 'undefined',
105+
devtools: {
106+
enabled: typeof window !== 'undefined',
107+
},
106108
link: linkChain,
107109
cache: new InMemoryCache(inMemoryCacheObject).restore(windowApolloState),
108110
};

0 commit comments

Comments
 (0)