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

Function getHighlight

packages/query-devtools/src/Explorer.tsx:288–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 // Explorers share one highlight per window, so styles.css can style it by
287 // name. Each search adds and removes only its own ranges.
288 const getHighlight = () => {
289 let highlight = registry.get(HIGHLIGHT_NAME)
290 if (!highlight) {
291 highlight = new view.Highlight()
292 registry.set(HIGHLIGHT_NAME, highlight)
293 }
294 return highlight
295 }
296 createEffect(
297 on(search, () => {
298 getHighlight()

Callers 2

SearchableExplorerFunction · 0.85
addFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected