-
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
Firefox console shows "Attempt to postMessage on disconnected port" from Apollo extension #1007
Comments
Thank you for the bug report, I can reproduce this. Note for further reproduction: only happens when reloading the page while the DevTools are open. |
I've further investigated this issue, and the extension panel stops working after some idle time 100% of the time. A similar issue happened to vuejs devtools https://github.com/vuejs/devtools/issues/1974, making the background script I've tested the fix locally and can confirm the content script stops losing connection to the background script. Please note that the issue is not reproducible when inspecting the background script with firefox devtools, since this prevents the script from going idle : ![]() |
Hey all 👋 I'd love to revisit this and see if this is still an issue. We introduced a change some time ago that will automatically reconnect ports when they disconnect which should help when the background script goes idle due to inactivity. This should be available in v4.14.2 or later. Let me know if you're still seeing this issue, otherwise I'll plan to close this 🙂 |
Not seeing this anymore. Thanks @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. |
Intended outcome:
No extraneous errors are shown in Firefox browser console
Actual outcome:
Every browser tab for a site that doesn't use Apollo (ex: github) shows this in the console:
How to reproduce the issue:
Load any page that doesn't use Apollo (this page will do) in Firefox with the Apollo Client Devtools extension installed
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: