Skip to content
Source
Sign inSign up
TanStack/query

Devtools client prop is not working on Astro #6859

Send to my agent
ClosedJuanDa237(GitHub profile, opens in a new tab) opened this issue 0 comments

Describe the bug

Devtools client prop is not working on Astro with react, i have to use a provider for it to work, but when i pass the client via props it just dont work.

Your minimal, reproducible example

https://stackblitz.com/edit/withastro-astro-3pnv2i?file=src%2Fcomponents%2Ftest.tsx

Steps to reproduce

  1. Go to the stackblitz
  2. npm run dev
  3. Go to test component to change with provider or no.

Expected behavior

I expect that the devtool work passing client via props

How often does this bug happen?

Every time

Screenshots or Videos

image image

Platform

  • Windows
  • Chrome
  • React query and devtools @latest

Tanstack Query adapter

react-query

TanStack Query version

5.18.1

TypeScript version

No response

Additional context

I could use the provider, but the thing is that when u use multiple framework is better not to. Things also happen with the styles when the provider is used and the routes are changed with the view transitions, I just couldn't reproduce this.

image

  1. TkDodo added labelsbug

  2. TkDodo added labelspackage: react-query-devtools

  3. TkDodo closed this

Sign in to join this conversation.