MCPcopy
hub / github.com/TanStack/query / getQueryStatusColorByLabel

Function getQueryStatusColorByLabel

packages/query-devtools/src/utils.tsx:67–77  ·  view source on GitHub ↗
(label: QueryStatusLabel)

Source from the content-addressed store, hash-verified

65}
66
67export function getQueryStatusColorByLabel(label: QueryStatusLabel) {
68 return label === 'fresh'
69 ? 'green'
70 : label === 'stale'
71 ? 'yellow'
72 : label === 'paused'
73 ? 'purple'
74 : label === 'inactive'
75 ? 'gray'
76 : 'blue'
77}
78
79/**
80 * Displays a string regardless the type of the data

Callers 1

QueryDetailsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…