From 3e6c7bc4948223047209f48f9375d9956383864b Mon Sep 17 00:00:00 2001 From: Cedric Rabarijohn Date: Tue, 25 Mar 2025 01:58:49 +0300 Subject: [PATCH 1/3] fix: #2085 update Apollo Client devtools option --- packages/faustwp-core/src/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/faustwp-core/src/client.ts b/packages/faustwp-core/src/client.ts index fe81bd1a9..7ae8afac5 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), }; From 7b953068f1ed71ef7a30163483253565f35b1314 Mon Sep 17 00:00:00 2001 From: Cedric Rabarijohn Date: Wed, 26 Mar 2025 14:20:03 +0300 Subject: [PATCH 2/3] docs: Add changeset for faustwp-core/src/client.ts --- .changeset/wide-mangos-guess.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wide-mangos-guess.md 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 From c7da0c6249e24d714fc87444141793e7f159ed1b Mon Sep 17 00:00:00 2001 From: Cedric Rabarijohn Date: Sat, 5 Apr 2025 14:21:20 +0300 Subject: [PATCH 3/3] fix: fix formatting issues in packages/faustwp-core/src/client.ts --- packages/faustwp-core/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/faustwp-core/src/client.ts b/packages/faustwp-core/src/client.ts index 7ae8afac5..a6d1b8f27 100644 --- a/packages/faustwp-core/src/client.ts +++ b/packages/faustwp-core/src/client.ts @@ -103,7 +103,7 @@ export function createApolloClient(authenticated = false) { let apolloClientOptions: ApolloClientOptions = { ssrMode: typeof window === 'undefined', devtools: { - enabled: typeof window !== 'undefined' + enabled: typeof window !== 'undefined', }, link: linkChain, cache: new InMemoryCache(inMemoryCacheObject).restore(windowApolloState),