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

Function displayValue

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

Source from the content-addressed store, hash-verified

113 * @returns The value serialized with `superjson`, as a JSON string.
114 */
115export const displayValue = (value: unknown, beautify: boolean = false) => {
116 const { json } = serialize(value)
117
118 return JSON.stringify(json, null, beautify ? 2 : undefined)
119}
120
121// Sorting functions
122type SortFn = (a: Query, b: Query) => number

Callers 4

valueTextFunction · 0.90
QueryDetailsFunction · 0.90
MutationDetailsFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected