Skip to content
Source
Sign inSign up
TanStack/query

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

Closedn-satoshi061(GitHub profile, opens in a new tab) opened this issue 1 comment

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)

  1. benjavicente(GitHub profile, opens in a new tab) added labelspackage: angular-query-devtools

  2. benjavicente(GitHub profile, opens in a new tab) assignedbenjavicente

  3. I checked that #11786 fixed this and it is in @tanstack/angular-query-devtools@5.0.0-rc.1. Thank you! I can close this issue if that's ok.

Sign in to join this conversation.