urql-graphql / urql-devtools-exchange

The exchange for usage with Urql Devtools
https://www.npmjs.com/package/@urql/devtools
MIT License
54 stars 6 forks source link

Conditions for Chrome extension / devtoolsExchange init #127

Closed nephix closed 1 year ago

nephix commented 1 year ago

Hey,

what are the conditions for the Chrome extension to pick up the devtoolsExchange correctly?

On our website I only see:

Waiting for exchange Make sure you're using the Urql Devtools exchange!

but it never seems to be able to connect with the urql client.

I use:

In the source code I saw that the connection between urql client and urql devtools works via window.postMessage, so web components shouldn't be the hurdle

andyrichardson commented 1 year ago

Hey @nephix!

Just to be sure there isn't anything odd going on in your browser, try opening the devtools panel on this page. If that works, we can rule out any browser specific issues.

nephix commented 1 year ago

@andyrichardson it works there, and now also in our project.

The issue was that we have multiple urql clients on 1 page, so we only added the devtoolsExchange to one instance of urql instead of to all

andyrichardson commented 1 year ago

Thanks for the update! In that case I'll close this