Skip to content

Commit 8cb03d6

Browse files
Increase search interval
1 parent c0b0c99 commit 8cb03d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/extension/tab/hook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,14 @@ function initializeHook() {
216216

217217
/**
218218
* Attempt to find the client on a 1-second interval for 10 seconds max
219+
* Note: Increasing limit to 40 seconds to account for slow loads
219220
*/
220221
function findClient() {
221222
let interval;
222223
let count = 0;
223224

224225
function initializeDevtoolsHook() {
225-
if (count++ > 10) clearInterval(interval);
226+
if (count++ > 40) clearInterval(interval);
226227
if (window.__APOLLO_CLIENT__) {
227228
hook.ApolloClient = window.__APOLLO_CLIENT__;
228229
hook.ApolloClient.__actionHookForDevTools(handleActionHookForDevtools);

0 commit comments

Comments
 (0)