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

Function matchesData

packages/query-devtools/src/Devtools.tsx:138–139  ·  view source on GitHub ↗
(data: unknown, term: string)

Source from the content-addressed store, hash-verified

136 * @returns Whether the data matches.
137 */
138const matchesData = (data: unknown, term: string) =>
139 data !== undefined && getDataSearchText(data)!.includes(term)
140
141/**
142 * Builds data search texts for a few milliseconds per task, so filtering by data doesn't block

Callers 2

ContentViewFunction · 0.85
matchingSearchFunction · 0.85

Calls 1

getDataSearchTextFunction · 0.85

Tested by

no test coverage detected