diff --git a/.changeset/wide-mangos-guess.md b/.changeset/wide-mangos-guess.md new file mode 100644 index 000000000..135749847 --- /dev/null +++ b/.changeset/wide-mangos-guess.md @@ -0,0 +1,5 @@ +--- +'@faustwp/core': patch +--- + +Changed the way the devtools option is configured for the Apollo Client diff --git a/packages/faustwp-core/src/client.ts b/packages/faustwp-core/src/client.ts index fe81bd1a9..a6d1b8f27 100644 --- a/packages/faustwp-core/src/client.ts +++ b/packages/faustwp-core/src/client.ts @@ -102,7 +102,9 @@ export function createApolloClient(authenticated = false) { let apolloClientOptions: ApolloClientOptions = { ssrMode: typeof window === 'undefined', - connectToDevTools: typeof window !== 'undefined', + devtools: { + enabled: typeof window !== 'undefined', + }, link: linkChain, cache: new InMemoryCache(inMemoryCacheObject).restore(windowApolloState), };