Skip to content

Devtools Picture-in-Picture not Working With shadowDOMTarget #7109

@joealden

Description

@joealden

Describe the bug

Two recently added devtool features don't seem to play nicely together:

When enabling picture-in-picture mode with shadowDOMTarget specified, no styles are applied.

I'm not sure how the picture-in-picture mode is implemented, but maybe it needs to ignore shadowDOMTarget?

Your minimal, reproducible example

None (I don't believe CodeSandbox would be able to show this?)

Steps to reproduce

  1. Render the ReactQueryDevtools component.
  2. Open the devtools and click the "picture-in-picture" mode button.
  3. See that the newly opened devtool window has no styling.

Expected behavior

Styles should be applied as usual.

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

  • OS: Linux
  • Browser: Chrome
  • Browser Version: 122.0.6261.111

Tanstack Query adapter

react-query

TanStack Query version

5.28.0

TypeScript version

5.4.2

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions