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
Extension prevents websites (tested on atlassian.com) from loading styles #1162
Comments
This seems to be caused by us inserting a Seems like some custom flavor of SSR that isn't very well tested :/ We could go around this by inserting our script tag after the To be honest, I'm not sure if this is something we can cater to. Browser extensions have to insert their content somewhere, and if a page completely crashes because it has an additional |
It's not just Atlassian. This custom flavour of SSR is quite popular in React apps, especially as React Server Components become more widely adopted. Next.js (app router) and Remix render the whole HTML document on the server. Also reported in #937. apollo.client.devtools.bad.mp4Not sure if related, but the extension crashes the Dev Tools panel in Firefox. With the extension disabled: apollo.client.devtools.disabled.mp4 |
They render the whole page on the server, usually but they don't hydrate the whole page on the server, which is what causes the problem. Also, generally, the worst thing that will happen on a hydration mismatch is that React automatically rerenders the whole page. That this doesn't happen on the Atlassian site seems very weird - they seem to have managed to disable a central part of React rendering for some reason.
Honestly I don't even know how we could crash the DevTools even if we wanted as they run in isolation from our DevTools tab, but I agree, this is very weird behaviour. |
PS: After digging a little bit, it seems like Remix is using React to render and rehydrate the entirety of |
It looks like there is a relatively new browser api to work around that, |
This should be fixed by #1164, imitating the approach the React DevTools use. |
Thank you @phryneas 🙏 |
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:
I was surfing the web trying to access the Atlassian website atlassian.com. The website looks like the following when the extension is disabled or removed
Actual outcome:
The website loads without styles
How to reproduce the issue:
Install or enable the extension then open atlassian.com
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: