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

Add Support for SharedWorker Environments #134

Open cjmollitor-dialpad opened 11 months ago

cjmollitor-dialpad commented 11 months ago

Our team is currently running URQL in a SharedWorker and we'd like to use urql-devtools but it seems there isn't support for it yet. Currently, our environment is being misidentified as prod/SSR because SharedWorkers don't have a window object (link to code). Would you be able to add support for SharedWorker environments as well?

Let me know if you need any additional information. Thanks! 😃