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

Run Queries disappear #635

Open
sschneider-ihre-pvs opened this issue Jul 23, 2021 · 8 comments
Open

Run Queries disappear #635

sschneider-ihre-pvs opened this issue Jul 23, 2021 · 8 comments

Comments

@sschneider-ihre-pvs
Copy link

Intended outcome:
Queries should stay in the list after they have finished so they can be replayed in graphiql

Actual outcome:
Queries vanish.
Animation

How to reproduce the issue:
Currently happens everywhere I tried to use Apollo Devtools

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Browser version: 78.11.0esr
  • Extension version: 3.0.5
@hwillson
Copy link
Member

@sschneider-ihre-pvs any chance you could provide a small runnable app that this happens with, to help with troubleshooting?

@sschneider-ihre-pvs
Copy link
Author

I think not since it is an internal project. Is there any way to get you some extra information that could be relevant? What could cause queries to disappear? Is there a log file or something?

@MrDesjardins
Copy link

I also have in an internal project the same behavior where some (not all) queries are disappearing after few seconds.

@adamdicarlo
Copy link

Same thing happens in my app - queries only stay in the queries tab for less than a second or so.

Perhaps it's due to older versions of apollo-client and friends?

This app is on:

    "apollo-cache-inmemory": "1.5.1",
    "apollo-client": "2.5.1",
    "apollo-client-preset": "1.0.8",
    "apollo-link": "1.2.11",
    "apollo-link-context": "1.0.14",
    "apollo-link-http": "1.5.11",
    "apollo-link-ws": "1.0.17",
    "apollo-utilities": "1.3.2",

@blazk0
Copy link

blazk0 commented Feb 11, 2022

Same thing happens in my app - queries only stay in the queries tab for less than a second or so.

Perhaps it's due to older versions of apollo-client and friends?

This app is on:

    "apollo-cache-inmemory": "1.5.1",
    "apollo-client": "2.5.1",
    "apollo-client-preset": "1.0.8",
    "apollo-link": "1.2.11",
    "apollo-link-context": "1.0.14",
    "apollo-link-http": "1.5.11",
    "apollo-link-ws": "1.0.17",
    "apollo-utilities": "1.3.2",

i have "@apollo/client": "^3.2.3", and having the same problem.
they show then vanish after a second

@elimenko
Copy link

elimenko commented Feb 22, 2022

Having same issues. It seems to be more complicated (at least in my case): Active Queries are duplicated, they are almost identical, but one has __typename in it. And the one that has __typename disappears when I navigate from the page. What's even worse, when i try to refetch this query, I get a warning about Unknown query which causes issues with updating cache

@harveyconnor
Copy link

I'm still getting this issue,
any updates?

@jerelmiller
Copy link
Member

Hey @harveyconnor 👋

No updates yet. This is on our radar and we'd like to get to this in the near term.

To get this working, we'll need to introduce changes to Apollo Client itself so that we can capture the "one-off" requests that happen in the client. Currently the extension works by reading some internal state off the client, but that internal state only holds active queries. One-off queries aren't maintained in that state and we have no way of capturing that information otherwise, hence why this is still an outstanding issue.

We are still exploring how best to introduce code in Apollo Client core for devtools without bloating its bundle size too much. We've got a lot of ideas on features to add but haven't had the time to really sit down and figure out exactly how we want to tackle that. As soon as we do, this is one of the top things we'd like to fix.

I know its not a great answer, but hopefully that provides some context around the issue.

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

No branches or pull requests

8 participants