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

Function getSidedProp

packages/query-devtools/src/utils.tsx:20–27  ·  view source on GitHub ↗
(
  prop: T,
  side: DevtoolsPosition,
)

Source from the content-addressed store, hash-verified

18type QueryStatusLabel = 'fresh' | 'stale' | 'paused' | 'inactive' | 'fetching'
19
20export function getSidedProp<T extends string>(
21 prop: T,
22 side: DevtoolsPosition,
23) {
24 return `${prop}${
25 side.charAt(0).toUpperCase() + side.slice(1)
26 }` as `${T}${Capitalize<DevtoolsPosition>}`
27}
28
29export function getQueryStatusColor({
30 queryState,

Callers 1

DraggablePanelFunction · 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…