Skip to content

How to use Chrome Extension React Query Devtools #9291

Answered by dborysov
nickstaroba asked this question in Q&A
Discussion options

You must be logged in to vote

That's actually a good point. I will add a link from chrome store to the github. This process might take a couple of days, but I expect it to be published somewhere on Tuesday. I will also update the setup instructions in the extension itself.

But for now, there are 2 ways how you can fix it with Typescript:
either

(window as any).__TANSTACK_QUERY_CLIENT__ = queryClient

or create global.d.ts with the following content:

interface Window {
  __TANSTACK_QUERY_CLIENT__: import("@tanstack/query-core").QueryClient;
}

I personally try to avoid any by all means, but maybe in this case it's not too terrible

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@TkDodo
Comment options

@dborysov
Comment options

Answer selected by TkDodo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants