Cache is not explorable from ROOT_QUERY in dev tools version 3.0 #492
Replies: 3 comments 1 reply
-
Thanks @martdavidson - this is an intentional change. We wanted to make sure the cache panel shows a real representation of the cache behind the scenes, instead of hiding ref's. This is intended to help people understand how the cache works internally. We are thinking about making this an option though, so people can toggle the behavior they prefer (either show the refs or automatically render referenced entities in the view). |
Beta Was this translation helpful? Give feedback.
-
Understood! I'll give the ol' +1 to a configurable option, as you can imagine it's painful to look through a list of entities in the ROOT_QUERY and then have to cross reference the cache key to check each reference. Anyway congrats on the launch, up to you if you want to leave this open or not. |
Beta Was this translation helpful? Give feedback.
-
@hwillson any updates on this topic? |
Beta Was this translation helpful? Give feedback.
-
This might be the desired new behaviour (in which case, this can be a feature request), but as it's a change from 2.0 and mentioned in #283 as being fixed with this new version, I figured I'd report it.
Intended outcome:
ROOT_QUERY cache should show full entity objects.
Actual outcome:
Looks like only the __ref is available in the tree, forcing you to go look for that entity in the sidebar.
How to reproduce the issue:
Open the Apollo Dev Tools on a page that makes queries, and check out the ROOT_QUERY in the cache tab. You'll see only __ref:
Entity:Id
instead of the full entity object as it was in 2.0.Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions