Skip to content

Commit 3e6c7bc

Browse files
fix: #2085 update Apollo Client devtools option
1 parent 9fa95cf commit 3e6c7bc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)