Skip to content

[angular-query] injectDevtoolsPanel doesn't support the 'theme' option #11680

Description

@n-satoshi061

Describe the bug

injectDevtoolsPanel doesn't accept a theme option. withDevtools and the React/Preact/Solid/Vue panels all support it.

I think it was missed in #10609, which added theme only to the floating Angular devtools.

Your minimal, reproducible example

injectDevtoolsPanel(() => ({
  hostElement: this.divEl(),
  theme: 'dark', // TS error: 'theme' does not exist in type 'DevtoolsPanelOptions'
}))

Steps to reproduce

  1. Use injectDevtoolsPanel
  2. Pass theme: 'dark'
  3. Get a type error, and the theme is not applied

Expected behavior

injectDevtoolsPanel accepts theme like withDevtools does. I can send a PR for this.

Platform

  • OS: macOS
  • Browser: any

Tanstack Query adapter

angular-query

TanStack Query version

5.104.0 (also current main)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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