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

Function getObserverCountColorStyles

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

Source from the content-addressed store, hash-verified

1648 )
1649
1650 const getObserverCountColorStyles = () => {
1651 if (color() === 'gray') {
1652 return css`
1653 background-color: ${t(colors[color()][200], colors[color()][700])};
1654 color: ${t(colors[color()][700], colors[color()][300])};
1655 `
1656 }
1657
1658 return css`
1659 background-color: ${t(
1660 colors[color()][200] + alpha[80],
1661 colors[color()][900],
1662 )};
1663 color: ${t(colors[color()][800], colors[color()][300])};
1664 `
1665 }
1666
1667 return (
1668 <Show when={queryState()}>

Callers 2

QueryRowFunction · 0.85
MutationRowFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected