apollographql / apollographql/apollo-client-devtools

Is client.query() supposed to log the query in the Chrome Extension

Open
#588 6 comments 2 reactions 0 assignees View on GitHub
🐞 bug
Dominant language
TypeScript
Stars
1.5k
Forks
172
Avg merge
10m
Merged PRs (30d)
8

Description

**Intended outcome:**
Hi, so for performance reason and also because it's not a good practice with hooks to use them in a forEach I'm using client.query directly to query graphql and get a promise for each query I'm bundling together in a Promise.all(). I'm expecting the query info to show in the extension panel.

**Actual outcome:**
The query infos doesn't show in either in the queries tab nor the cache tab. However they are correctly executed and can get the data. I know the extension work correctly with hooks because I have some working correctly.

**How to reproduce the issue:**
Using this method to setup a query client : https://www.apollographql.com/docs/react/get-started/#create-a-client

**Desktop (please complete the following information):**
- OS: Mac OS X
- Browser: Chrome
- Browser version: 91
- Extension version 3.0.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.