Skip to content
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

Stuck in "Waiting for exchange" #132

Open
tomconnors opened this issue May 26, 2023 · 3 comments
Open

Stuck in "Waiting for exchange" #132

tomconnors opened this issue May 26, 2023 · 3 comments

Comments

@tomconnors
Copy link

Hello and thanks for URQL.

I'm attempting to set up the devtools in a basic web app. I've added the devtools exchange to the client, but the URQL panel in the dev tools says "Waiting for exchange". How can I debug this?

Here's my client config code for reference:

import { Client, fetchExchange, gql } from "@urql/svelte";
import { cacheExchange } from "@urql/exchange-graphcache";
import { devtoolsExchange } from "@urql/devtools";
import * as util from '@/lib/util';

export default function client() {
    const client = new Client({
        url: "http://localhost:4040/api/report-graphql",
        exchanges: [
            devtoolsExchange,
            cacheExchange({ ... }),
            fetchExchange,
        ],
        fetchOptions: () => {
            const csrfToken = util.csrfToken();
            return {
                headers: { "X-CSRF-Token": csrfToken },
            };
        },
    });

    return client;
}
@ryu-liam
Copy link

Same issue to me😬

@gercordero
Copy link

@kitten Hello, excuse me for tagging you directly but I saw that you're an active maintainer in the main urql repo! Are you guys still maintaining the devtools? I'm getting this issue in both FIrefox and Chrome, this repo seems to be quite outdated, are any of you planing on updating it any soon? 😄

@onx2
Copy link

onx2 commented Aug 22, 2024

bump on this -- is this exchange officially unmaintained? I'd really love to be able to use it if possible.

Edit: It looks like debugExchange might be the best option for the moment. The chrome extension doesn't exist anymore and the FF one isn't recognizing the devtools exchange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants