Skip to content

Commit

Permalink
Make window.__APOLLO_CLIENT__ configurable (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Jun 6, 2024
1 parent 6d880dd commit 0e4600f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-drinks-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"apollo-client-devtools": patch
---

Make `window.__APOLLO_CLIENT__` configurable so it can be redefined.
1 change: 1 addition & 0 deletions src/extension/tab/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ Object.defineProperty(window, "__APOLLO_CLIENT__", {

globalClient = client;
},
configurable: true,
});

if (globalClient) {
Expand Down

0 comments on commit 0e4600f

Please sign in to comment.