Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ useTheme
Function
useTheme
packages/query-devtools/src/contexts/ThemeContext.ts:12–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
* @returns A getter
for
the current theme, `
'light'
` or `
'dark'
`. Defaults to `
'dark'
`.
11
*/
12
export
function
useTheme() {
13
return
useContext(ThemeContext)
14
}
Callers
15
CopyButton
Function · 0.90
ClearArrayButton
Function · 0.90
DeleteItemButton
Function · 0.90
ToggleValueButton
Function · 0.90
SearchableExplorer
Function · 0.90
Explorer
Function · 0.90
PiPPanel
Function · 0.90
ParentPanel
Function · 0.90
DraggablePanel
Function · 0.90
ContentView
Function · 0.90
QueryRow
Function · 0.90
MutationRow
Function · 0.90
Calls
no outgoing calls
Tested by
1
ThemeProbe
Function · 0.72