Skip to content

Devtools client prop is not working on Astro #6859

@JuanDa237

Description

@JuanDa237

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions