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

Function displayValue

packages/query-devtools/src/utils.tsx:84–88  ·  view source on GitHub ↗
(value: unknown, beautify: boolean = false)

Source from the content-addressed store, hash-verified

82 * @param {boolean} beautify Formats json to multiline
83 */
84export const displayValue = (value: unknown, beautify: boolean = false) => {
85 const { json } = serialize(value)
86
87 return JSON.stringify(json, null, beautify ? 2 : undefined)
88}
89
90// Sorting functions
91type SortFn = (a: Query, b: Query) => number

Callers 3

ExplorerFunction · 0.90
QueryDetailsFunction · 0.90
MutationDetailsFunction · 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…