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

Function getObserverCountColorStyles

packages/query-devtools/src/Devtools.tsx:1390–1405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1388 )
1389
1390 const getObserverCountColorStyles = () => {
1391 if (color() === 'gray') {
1392 return css`
1393 background-color: ${t(colors[color()][200], colors[color()][700])};
1394 color: ${t(colors[color()][700], colors[color()][300])};
1395 `
1396 }
1397
1398 return css`
1399 background-color: ${t(
1400 colors[color()][200] + alpha[80],
1401 colors[color()][900],
1402 )};
1403 color: ${t(colors[color()][800], colors[color()][300])};
1404 `
1405 }
1406
1407 return (
1408 <Show when={queryState()}>

Callers 2

QueryRowFunction · 0.85
MutationRowFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…