apollo-client-devtools icon indicating copy to clipboard operation
apollo-client-devtools copied to clipboard

Queries get stuck after page refresh

Open tnrich opened this issue 7 years ago • 22 comments

Hey there,

I'm finding that once a refresh occurs in my app all of the previously made queries get "stuck" in the apollo devtools queries tab. When they get stuck there no other queries get added and nothing changes as I navigate around.

Here is a gif of this occurring from scratch. I'm on the latest version of apollo 2.

untitled

As you can see in the gif, on the initial load, everything seems to be working fine, but after refreshing no other queries get added. I can confirm that this occurs for all my colleagues as well.

I think this is very serious because it makes the devtools unusable after the initial page load.

tnrich avatar Feb 21 '18 00:02 tnrich

👍 happens to me too

ramsaylanier avatar Feb 26 '18 17:02 ramsaylanier

Happens to me when refreshing the page, and when manually modifying the URL. After I manually change the URL, I have to close the Apollo dev tools and open it back up again.

seangransee avatar Mar 21 '18 15:03 seangransee

I find my whole cache says with a page reload - I need to close dev tools and re-open it to see the correct data

wesbos avatar Apr 06 '18 20:04 wesbos

A stop-gap solution right now is to just reload the entire frame:

wesbos avatar Apr 06 '18 20:04 wesbos

using the "reload" frame option made my life a whole lot easier for now

jeffwillette avatar Apr 26 '18 04:04 jeffwillette

As mentioned in #111 the problem also occures if you execute a query in the GraphiQL tab after a page reload.

The workaround from @wesbos works in that case by choosing "Reload Frame" in the Documentation Explorer column from GraphiQL or in the navigation tab at the left:

image

nilshartmann avatar Jun 09 '18 08:06 nilshartmann

Is this going to be fixed at some point? The workaround works but it adds a lot of extra clicks/overhead when debugging

SeanRoberts avatar Aug 16 '18 18:08 SeanRoberts

Agree with other commenters, this doesn't seem to be getting enough attention given how fundamental this functionality is. The devtools are unusable unless you reload the frame every time. During development where refreshing the page happens every few seconds, this is extremely painful.

btorresgil avatar Sep 10 '18 22:09 btorresgil

This issue is still there. Any updates on it?

THPubs avatar Nov 10 '18 02:11 THPubs

Still broken, now ten months. Is anybody monitoring these issues?

ccpony avatar Jan 17 '19 16:01 ccpony

Thank you everyone for your report and for your patience. I'm going to be looking into this very soon.

justinanastos avatar Feb 11 '19 18:02 justinanastos

Whats the progress of this issue?

elioschmutz avatar Mar 27 '19 10:03 elioschmutz

Out of interest, does anyone have a workaround that works in Firefox? (the devtools context menu in Firefox does not have the "refresh" option).

Edit: Going into devtool's Settings and un/checking the "Apollo Client Developer Tools" option under the "Developer Tools installed by add-ons" section achieves the same thing.

thomasmichaelwallace avatar Apr 11 '19 13:04 thomasmichaelwallace

Any updates on this issue? This is a pretty big (bad) issue from a developer experience standpoint.

miketdonahue avatar May 19 '19 21:05 miketdonahue

Walked away from Apollo and dev-tools. Project seems abandoned. Was never ready for prime time.

ccpony avatar May 20 '19 04:05 ccpony

I'm sorry to respond with bad news and after such a long delay @elioschmutz , @theadactyl , @meebix , and @ccpony ; we haven't had the available resources to come back and make this change. We use this tool internally so we feel the same pain as you. I'm hoping that we'll have the resources to come up with a solution in the next few months; we're always trying to do better and are always happy to hear feedback, even if it's critical feedback.

justinanastos avatar May 21 '19 15:05 justinanastos

We're always looking for help with our open source libraries! Either with a PR or even an idea/recommendation on how to resolve the issue would be super helpful to me!

justinanastos avatar May 21 '19 15:05 justinanastos

@ccpony What did you move to? Been looking at alternative as well.

btorresgil avatar May 31 '19 14:05 btorresgil

This is still an issue for me, I have to reload the entire dev tools to see any updates to the cache. Any work around?

having to use console.table(__APOLLO_CLIENT__.cache.data.data) to see if the cache has changed

wesbos avatar Sep 30 '20 17:09 wesbos

This is also still an issue for me [email protected], @hwillson can you re-open?

@wesbos tip is the only way to view cache in a stable and predictable way. Based on other tickets it seems to be some interaction with NextJs and Apollo

coler-j avatar Nov 18 '20 02:11 coler-j

4 years later this is still an issue I tried using different browsers I'm using React and Apollo no NextJS

stazcp avatar Apr 13 '24 00:04 stazcp

Hey all apologies on this issue! Seems this may still be a thing so I'm going to reopen this.

We've done a lot of work on the message passing recently to try and get some of the big stuff out of the way, but seems we still have some work to do to handle some cases that are still happening. Thanks!

jerelmiller avatar Apr 13 '24 02:04 jerelmiller

Hey all 👋

We've done a lot of work recently to make the communication between the browser tab and the extension more reliable. https://github.com/apollographql/apollo-client-devtools/pull/1378 was released with 4.13.1 which should fix the intermittent issue where data would not show up in the devtools on page reload.

As such, I'm going to go ahead and close this issue. If you are still seeing the issue while using 4.13.1 or later, please let me know and I'd be happy to reopen this issue. Thanks!

jerelmiller avatar Jun 04 '24 22:06 jerelmiller

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

github-actions[bot] avatar Jun 04 '24 22:06 github-actions[bot]