-
Notifications
You must be signed in to change notification settings - Fork 168
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
Error in the queries tab in apollo dev tools [Vue Application] #1479
Comments
Thank you for the report! It looks like this might be a regression from #1268, and we might need to also wrap apollo-client-devtools/src/extension/tab/hook.ts Lines 132 to 152 in 65ef982
@mhelmydiab For better understanding: do you have any values in your cache that are not plain objects? Something like |
Good catch! This is probably from #1418 which optimized data transfer between the devtools and content scripts for only the tab you're looking at. We do run a cache diff for
Applying the json parse/serialize fix we did for the cache tab should work here as well. I don't think we need it for mutations since that doesn't transfer any cache data so we can leave that one alone. |
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. |
@mhelmydiab I just published the fix in 4.8.2 which should go live in the extension stores within the next couple hours. Please let me know if you're still seeing issues after your extension has been updated and I'd be happy to reopen. Thanks for the report! |
Unfortunately its still happening with me. |
the cache is showing fine but the queries and mutations tabs are showing that error: ApolloError: Failed to execute 'postMessage' on 'Window': # could not be cloned. ApolloError |
mhelmydiab Is there any chance you could provide us with a minimal reproduction of an application that causes this problem? Right now, all we could do would be keep guessing :/ |
Hey @mhelmydiab 👋 I've got another PR open (#1488) that should fix this. This instead will serialize everything sent from the client rather than hand-picking only a few values. We will try and get this out ASAP! |
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. |
@mhelmydiab we've shipped that other fix - could you please give it a try and report back? :) |
Error on Queries tab:
Additional details
Im running a vue application
@apollo/client
version3.11.4
Apollo Client Devtools version
4.18.1
The text was updated successfully, but these errors were encountered: