Skip to content

Commit 0e4600f

Browse files
authored
Make window.__APOLLO_CLIENT__ configurable (#1407)
1 parent 6d880dd commit 0e4600f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/gold-drinks-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"apollo-client-devtools": patch
3+
---
4+
5+
Make `window.__APOLLO_CLIENT__` configurable so it can be redefined.

src/extension/tab/hook.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Object.defineProperty(window, "__APOLLO_CLIENT__", {
274274

275275
globalClient = client;
276276
},
277+
configurable: true,
277278
});
278279

279280
if (globalClient) {

0 commit comments

Comments
 (0)