MCPcopy Create free account
hub / github.com/TanStack/query / getSidedProp

Function getSidedProp

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

Source from the content-addressed store, hash-verified

31 * @returns The sided property name.
32 */
33export function getSidedProp<T extends string>(
34 prop: T,
35 side: DevtoolsPosition,
36) {
37 return `${prop}${
38 side.charAt(0).toUpperCase() + side.slice(1)
39 }` as `${T}${Capitalize<DevtoolsPosition>}`
40}
41
42/**
43 * Returns the color of a query's status: blue while fetching, gray without observers, purple while

Callers 2

DraggablePanelFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected