Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phbou72 opened this issue May 30, 2021 · 6 comments
Open

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

phbou72 opened this issue May 30, 2021 · 6 comments
Labels

Comments

@phbou72
Copy link

phbou72 commented May 30, 2021

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
@phbou72
Copy link
Author

phbou72 commented Jun 7, 2021

After watching carefully the tools, I think it add them but they disappear after a short time.

@techimist
Copy link

I have the same question!

My team has an old setup and we are not using hooks. We directly query using the exported apollo client.
I noticed that Queries tab in the dev tools only shows the fired queries momentarily.

Is this an expected behaviour?

@hwillson
Copy link
Member

That doesn't sound like expected behaviour. We'll take a look - thanks!

@hwillson hwillson added 🐞 bug 2021-08 Milestone YYYY-MM labels Aug 13, 2021
@phbou72
Copy link
Author

phbou72 commented Aug 15, 2021

The problem also happen when using the useClient() hooks to query.

@hwillson hwillson added 2021-09 Milestone YYYY-MM and removed 2021-08 Milestone YYYY-MM labels Sep 9, 2021
@Oikio
Copy link

Oikio commented May 24, 2022

Issue still persists, apolloClient.query() calls for example disappear from active queries after a short duration.

@MrDoomBringer MrDoomBringer removed the 2021-09 Milestone YYYY-MM label Oct 20, 2022
@egnor
Copy link

egnor commented Jan 3, 2023

Is this the opposite of #815 ?

The wording "active queries" makes me think that it should NOT show one-shot queries that aren't watching for changes on an ongoing basis, but...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants